I think a good solution is industries should standardize on pay differential between working at the office full time, vs hybrid, vs full time work from home.
Here is just an example: Looking at the same exact job. Office workers would make 20% more than the WFH employees and Hybrid workers would make 10% more than WFH employees.
Now employees have incentives to pursue jobs on both ends of the spectrum. Maybe the employee values the freedom of working from home, not having to endure the cost of commuting or living in a major metro area.
You could argue about the percentages, but basically a pay differential could be the thing that settles the WFH struggle.