The issue isn't so much work from home, which is not the ideal working arrangement for all, it's the commute to a central location. What has happened is people have realised the essential stupidity of it.
The future will be much more mixed and more sensible. Some people will work from home and some people will work in offices, but those offices will be much closer to where people live and people who need to work together will tend to live close by, or at least have the opportunity to. Essentially we'll see a lot more smaller offices in the suburbs.
You couldn't design a worse system of everyone having to commute to a central location, with infrastructure that is always overloaded at rush hour and underused the rest of the time.
The key to that arrangement surviving has been that the impact is all on workers and the convenience payoff has been for employers. The pandemic opened people's eyes and they're not going back.