I definitely will quit
If my workplace mandates physically going back to work 5 days a week I will quit. If they mandate going back to work more than 1 day a week (or as necessary, I'm always willing to go in if necessary), I will quit.
I'm demonstrably more productive from home. And being in tech, I get 5-8 job inquiries a week, so finding a new job will not be a problem. There is absolutely no reason for me to go back on a daily basis other than for management to pretend they do something useful, and I'm not going back to those dark ages.