I have worked as a freelance for around 14 years, from home. My husband, a developer, always had told me that he couldn,t work without his colleagues around. Then the pandemic come and he had to work from home for more than two years. He loved it. No distractions, no commuting (I think that is the worst), better environment to concentrate in silence....he didn,t want to go back to an office. Like never ever.
But then the company he worked for said that everybody had to go back to the office because that is what's the company wanted. My husband and the rest of his department got very angry. In three months, all the 10 people in it had gone to other remote works. The day my husband said he was leaving in three weeks was the last day of his immediate boss. So he gave notice to a higher boss, that had a big tantrum because he thought it was a workers plot.
It wasn,t, but seems that nobody has to be forced into the office if they can do better work elsewhere. Because they leave if they can. As a consequence they lost all their senior developers and two middle managers. My husband now is happy, works from home and travels to the office for meetings and things like that a two or three days every three months. He works for a big international company with people in remote in several countries. His prior company is struggling really hard to finde people to work for them. It is up to them: expert people on remote or junior people wanting experience to go remote later on other job.