On the flip side, open source projects function just fine with 100% remote work in different time zones.
One thing I found with WFH pre-and-post Covid is the the 'Feynman moment'- "If you cannot explain something in simple terms, you don't understand it". Complex architectures in the minds of a few people, or the way creaky systems worked together, and so on. Or to put it another way, no documentation for offline folks, because no one considered it important. So much for all that boasting about business continuity plans.
Which is almost a justification for being in the office, just to ask 'those people' how things works. It should also be a big red flag to management that things need fixing. But that's in the category of the management not seeing the financial benefit of doing it as there isn't an instant measurable up-front saving.
(edit) 'those people' are typical senior devs, and senior devs are often most likely to want to, or can, WFH.