Just because a lot of regulations are bad (or enforced poorly) and some licenses are onerous does not mean "regulation === bad" or "licensure === bad."
But when bad regulations cause bad outcomes, it's pretty weird to focus the blame on the people warning that bad regulations can cause bad outcomes instead of how the regulations are flawed and whether they can be fixed.
See taxi medallions. Another example for a long time would have been FAA approval of new aircraft type certificates and the requirements creating a huge barrier for entry to get them that artificially prevented competition.
I haven't checked, but I assume that today there are more rules and regulations on doctors in the US than there were on the entire Soviet economy. Some of those rules are good, but most of them are in place because a hospital system or a medical association lobbied to put them in place so that they could keep barriers to entry high.
It’s actually very surprising we trust doctors so much (have inelastic demand for them) because for most of history doctors were more likely to kill you than not.