Okay here is a workaround. Open Visual Studio from powershell that way when Visual Studio opens up it will register the clean environment instead of your regular polluted one.
$ENV:PATH = "C:\windows\system32"
# This command will open up visual studio
# See this stackoverflow: https://stackoverflow.com/a/60228336
start devenv
That should work. Fingers crossed