I think just about all legal systems have catch-all regulations that allow for fines for abuse.
Moreover, law isn't actually mechanical rules like computer science - people who skirt the law systematically often find themselves facing serious legal problems and intention is a big consideration in some (but not all) regulations. "Obstruction of justice", "contempt of court" and so-forth are broad statutes that let courts lean on those abusing the system. etc.
The actual problem, I'd note, is that courts and cities are much more hesitant to go after large, monied interests as compared small interests. A local crank doing what Uber, Airbnb or others do could go to jail, these companies just count their money.