Can not compile all of a sudden

I had the same issues today.
Downgrade PIO to 2.1.0 and everything started working again.

Etenstions -> scroll to PIO -> Manage (gear) -> choose install another version -> then choose 2.1.0