This doesn't seem like a hard problem, if you want to work in an office seek out companies that are working in the office. What's the issue here? Plenty of companies require it and are slowly enforcing it. I don't know where you live but plenty of companies in Boston, which use to be remote, are requiring more people to come in the office now (DataDog, Klaviyo, Chewy, all the finance/insurance companies, DOD contractors, and lots of the satellite big tech offices like Amazon, Google, Microsoft, SalesForce, etc are requiring it).
Are you upset that more interesting companies/problems to work on are mostly remote teams? Remote work is one of the few hard, real, and sought after benefits people want that a company of any size can provide to stay competitive in the labor market.
As for me, I have no problem working in an office but the commute needs to be less than an hour of walk + subway/bus otherwise it's too much of a negative externality. Maybe there should be more offices where people live and not massively congregated into a single location? You can blame poor planning for that. There's no reason why there can't be more mixed developed neighborhoods.