They do it by citizenship, and you might be surprised how many investment properties are vacant homes, but I’m not necessarily advocating for this in any case. The real cure would just be right to build laws.
The problem is, you can’t do that at the federal level, and the people who vote at the local level are the homeowners who benefit from housing restrictions.
The federal government has a very difficult task. They want to make home prices basically stay flat for a long time, and they have limited tools with which to do it since they can’t do the one thing every economist agrees would solve the problem.