If an AI comes along that is able to do their job better than them then they will not have a say in that. No matter how many regulations the government puts up.
Is like trying to regulate cars to save the horse shoe industry.
And if doctors can be automated away so can software developers. I guess in the long term we are all obsolete.