That's exactly what happened at my company. They said return to office three days a week, then half the devs quit. They frantically put together new smaller teams based on who had which skills.
But I live in an expensive city that everyone moved away from when they could work from home. Therefore all the other devs had no choice but to quit as they couldn't come in, and the people I'd handed stuff over to recently were all in different offices. So I ended up coming into the office three days a week just to sit on Microsoft Teams.
And then the managing director had the cheek to tell me that wasn't in the spirit of coming back to the office. What was I supposed to do, ignore productive meetings and never communicate with my team, but instead talk face-to-face with Janet about her daughter's nativity play for the twentieth time?