When fails to recognize imports in a Poetry project, it is almost always because VS Code is using a different Python interpreter (like a system-wide version) instead of the virtual environment Poetry created. Step 1: Link the Poetry Interpreter
If VS Code didn't auto-detect the environment, you need to find where Poetry hid it. pylance missing imports poetry link