Ironically, during peak covid lockdowns, "this is only temporary" may have actually been seen as reckless and irresponsible. "There's a pandemic! We need to be remote for the foreseeable future, not just temporarily!1!1" (etc...)
During peak covid, a lot of people made decisions that they reneged or reversed later. I'll get downvoted if I empathize with the executives making these decisions, but all I'll say is that no one had a crystal ball in 2020/2021. I give a lot of people the benefit of the doubt that they believed what they were saying at the time they said it (even if they have since reversed their opinion).
I don't think anyone was expecting the tech bubble to burst until it did. I don't think anyone was expecting the degree of inflation which led to interest rates which led to big tech downsizing, etc. A lot of people made a lot of mistakes. One of the top mistakes a lot of companies made was hiring people outside of their HQ cities and they're trying to correct that now.
Edit: To be clear I'm a proponent of remote work. Our company has been remote since before covid. Pro tip for anyone in the job market: look for companies that were remote pre-Covid and be skeptical about WFH promises if the company was forced to go remote after 2020.