I'm running VSCode on a Linux machine. In the terminal, my Python version is 3.10.1, with the path /usr/bin/python.
However, in VSCode, it only shows Python 3.9.9, but with the same path.
Indeed, VSCode's built-in terminal also uses Python 3.9.9.
I have not yet found a way to fix this, such that Python 3.10.1 is available for use in VSCode.