I am retired but I worked as part of a team that was spread all over the country—we were the subject matter experts.
It made no sense for any of us to go into any office.
Our managers had to figure out how to measure our work.
The smart managers got it done—the dumb ones went away.
I work for a company that has no office. Everyone works remote. I deal with sales people and customers via phone/text all day. The downside is my phone is going off at 7am and 9 pm sometimes. But it still beats going into an office.