Oh you’re the best, maxgerhardt!
The console spit out the problem immediately - apparently there was a problem with the cpptools extension (C/C++ for Visual Studio Code), on which pio depends. I uninstalled and reinstalled cpptools (had to remove platformio ide in the process), and now everything works! Thanks so much!