I’ve seen this exact bug in a topic here before: Create a new project Error in platfromio ide with vscode! When modify the folder path of .platformio from "%HOMEPATH%\.platfromio" to Specified path. However there were no more responses after that.
Please post this bug in Issues · platformio/platform-espressif32 · GitHub for @valeros.