And in my experience there is a minority of people, also developers, who really enjoy working at the office, or don't do well at home.
Good managers would be busy figuring out what their people actually need to thrive and know that it is not the same for everybody.
In this case, I really hope forward thinking companies will destroy the competition and scoop up all the displeased talent that is forced to return to the office. Insofar as we have a free market, the problem will then sort itself out anyway, even though the road to get there might be ugly.