This is true, but it's important to remember that some regulations were not written in blood, but instead in racism - see R1-zoning as one of the most significant examples.
Regulations are just tools, really. They can evidently be used for good, and should be used for good, but some are being used for bad and should be reformed.