I listened to a podcast last week that covered some of the changing research around remote work. Some of the recent research does point to significant decreases in productivity for fully remote work. Even in a field like software engineering, where it seems like proximity to coworkers shouldn't matter much, there's a study that found that coders got significantly less feedback from colleagues when they were simply not working in the same space, and during the pandemic and fully remote work feedback decreased further.
That's not to say that you can't be successful working on a remote team. In my small working group, I work in the office, but others work remotely enough that I might as well be remote. We still produce good work while being primarily remote. But I can also tell that when we do have several of us in the office, in-person conversations tend to pack in a lot more information and it's easier to see additional ideas flowing from one conversation to the next.