Well, sure, but you bought property in those areas depending on if you wanted to run a business or use it as a residence. Maybe there should be a separate residence-as-business zone used for Airbnbs.
Banning short-term rental properties feels like a quick bandaid to gain political points, not a solution to a market with a large demand.