Hang creating new projects. Hang using pio install

Works on my machine

PS C:\Users\Max\Documents\PlatformIO\Projects\forum_test> pio platform install espressif32 --with-package framework-espidf --force
Platform Manager: Removing espressif32 @ 2.1.0
Platform Manager: espressif32 @ 2.1.0 has been removed!
Platform Manager: Installing espressif32
Unpacking  [####################################]  100%
Platform Manager: espressif32 @ 3.0.0 has been installed!
Tool Manager: Removing toolchain-xtensa32 @ 2.50200.80
Tool Manager: toolchain-xtensa32 @ 2.50200.80 has been removed!    
Tool Manager: Installing platformio/toolchain-xtensa32 @ ~2.50200.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: toolchain-xtensa32 @ 2.50200.80 has been installed!
Tool Manager: Removing framework-espidf @ 3.40200.210118
Tool Manager: framework-espidf @ 3.40200.210118 has been removed!
Tool Manager: Installing platformio/framework-espidf @ ~3.40200.0
Unpacking  [####################################]  100%
Tool Manager: framework-espidf @ 3.40200.210118 has been installed!
Tool Manager: Removing tool-esptoolpy @ 1.30000.201119
Tool Manager: tool-esptoolpy @ 1.30000.201119 has been removed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.30000.0
Tool Manager: tool-esptoolpy @ 1.30000.201119 has been installed!
The platform 'espressif32' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.

out of experience things that can interfer is antivirus software. The Windows defender (‘Antimalware Service Executable’) is also considerably slowing down PlatformIO in my experience, to the point where I simply created an exception for my C:\Users\<user>\.platformio folder and some process names for compilers, which led to a speedup.

You should try and remove the content of C:\Users\<user>\.platformio\pacakges\* and C:\Users\<user>\.platformio\platforms\* again, deactivate AV and/or add exceptions and start a new project. It must download a lot of things then on the first project start, so keep an eye on the task manager regarding the process with the most network and disk usage – if all is zero, then it’s weird.