The final solution has been to declare an environment variable for python path within the Dockerfile:
e.g.: ENV PYTHONPATH "${PYTHONPATH}:/opt/venv/lib/python3.11/site-packages"
After this change, vscode is able to resolve all my project requirements inside the development container.