I've worked fully remote before and I loved it. I got tons of work done, had time and energy for doing stuff after work, and generally flourished.
I'm in an office for a few days a week now with a new company, and I genuinely struggle to get work done on those days. I'm interrupted frequently, office mates love having very loud conversations by my desk, and I can't even fix healthy food on demand and instead drag in a lunch box like a child.
But, and here is the important bit, that's my experience. I have coworkers for whom the inverse is true, who would hate being remote at all, and see the office as the only space they can be productive in.
Just like shoes come in different sizes, so too do office working styles. My overwhelming complaint is that I have to fight tooth and nail to work from home, and I usually get the complaint "Well I don't like working from home, so you shouldn't do it either".
It's like I'm trying to justify being left handed. It's ridiculous. What works for me works for me, and I have direct stats that prove that on every basis (benefit of being a dev, work can be measured).