Heavily tax buying and owning homes as investments. Also heavily tax vacant homes in regions with a housing shortage.
Basically regulate it so that prospective buyers who are buying a place to live in are significantly advantaged when trying to do so, while at the same time discouraging others from buying up those homes as investments.