We already have this in the Netherlands. In order to deter squatters you can hire a student to live in your property.
You can kick them out on short notice.
And you should not. Hyping real estate prices or just putting massive real estate to disuse and often pricing the locals out is a big problem but so is losing a property to squatting. Such things don’t always involve millionaires and billionaires.
Is there a requirement for owner occupancy?