Trying to compile Marlin 2.0.7 - PIO Errors

No, in the VSCode extension menu you would only downgrade the PlatformIO extension version. (Of course they’re also kind of coupled, not sure if the latest PlatformIO VSCode extension can talk with an ancient PIO core correctly).

As partly referenced here, you’ll have to open a PlatformIO Core CLI and use

pio system info

to find the

Python Executable           C:\Users\Max\.platformio\penv\Scripts\python.exe

location (will be different on your computer). Then, in that same terminal, you can issue a command like

C:\Users\Max\.platformio\penv\Scripts\python.exe -m pip install "platformio==6.1.4"

with a version selected from here.

After that,

pio --version

should hopefully reflect the change. This might need a restart of VScode, too.