It is all going to come down to whether the worker shortage continues.
If it does, then remote work will continue to be strong. it is a no-cost perk companies can provide to entice people they interview. And companies are not going to force their employees back to the office if those employees know the next company over will allow them to work remotely.
If the economy slides so much that layoffs are needed, well remote workers are likely to be in a worse position than in-office workers and may well be among those let go.
Note: since a significant portion of workers who disappeared during the pandemic were older workers who retired, I’m betting the worker shortage continues in the near term. Long term (1 year or more out) who knows.