Just like code, regulation isn't intrinsically valuable - it's a means to an end, and piling lots of poorly-written stuff on top of each other has disasterous consequences for society. We have to make sure that the code and law that we write is carefully thought out and crafted to achieve its desired effect with minimal complexity, and formally verify and test it when possible.
(an example of testing law may be to get a few clever people into a room and red-team possible exploits in the proposed bill or regulation)