I live in a house that was sold at below market rates, under the condition that I will also sell to the next homeowner at a below market rate, there is a fixed equity gain each year to cover general home owner costs. I own the house, the city owns the land the house is on, HOA covers outside upkeep like roofing, window cleaning and driveway maintenance. This is known as a Community Land Trust.
There is no reason this method of housing can’t also be applied to folks that live in an apartment. Fuck corporations they shouldn’t own anything.