Simply run:
This writes 3.11.5 to .python-version and automatically switches your shell to that version when inside the project. .python version
And it worked.
This should output: