I do not know yet why this happened but vscode did not know the location of my python interpreter inside virtual environment managed by uv. Anyways, I used ctrl-shift-P and searched for interpreter, then I selected Python: Select Interpreter option and I manually added the path of my .venv/bin/python and I just worked. Thank you for helping.