Try unsetting PYTHONPATH before starting up vscode or any vscode forks: unset PYTHONPATH
unset PYTHONPATH
I've commented on this issue here: https://github.com/microsoft/pyright/issues/9610#issuecomment-3154268891