Buildings serve our purpose of physical proximity, or structure, and to some - a (potentially safe) place to go to, which is out of the house. Have physical premises to schools is very important, but I would say - should be thought of flexibly. More precisely, I would suggest that schools building should be associated with learning and social interaction (that is so core to learning), but not the other way around! i.e., learning and social interaction should take place, well-planned, and evaluated in and out of buildings.
Either due to COVID, but also in 'peace times', we do not stop learning just because we set our foot out of school. Learning is a continues experience, in school, at home, in the park and everything in between. Learning should be designed to use everything a building can offer, but also everything the laptop at home, the tranquility in the park, meeting with friends, cooking or anything at all!
I'm collating a list of online schools on my website here: https://www.progressiveeducation.org/approaches/online-schools/ Perhaps not a permanent or full-time solution for everyone but they can useful when used in combination with other approaches to education, or for those who have difficulty accessing conventional school.