Roy Smith's suggestion worked for me https://github.com/microsoft/vscode-python/issues/24656 downgrading the python basically it's downgrading the python extension to version 2024.22.0 which fixed it and let's the discovery succeed again