You're absolutely right - safety is key importance, style/'correctness' are secondary.
My dad is a contractor. He can literally build anything. I grew up with this, going on jobs with him, being in that whole space. I do software (but can build things too! :) and the one thing I've inherited from him is the 'do it right' conviction. Just like some of the tv shows where the hero goes in and says "omg, how could they do this?" or "this is all gonna have to be ripped out and re-done the right way because the wall is load bearing", that's my dad.
And for software more and more as the years go by, that's me. Yah, there is no software test we have to take - we just have conventions and patterns, none of which (I've seen) are governed at all, although I'm sure some are somewhere. Sometimes I wish this was the case. I've worked with bad coders and seen code that is unbelievable and part of me thinks this could all be avoided with regulation. But then, obviously, the other part (that wants to stay alive and put food on the table) knows that when this happens, the world changes and software will not be the 'easy' path it is now.
Like my dad, I have that dna in me to do the best job and the right work. But if there were regulation like in the building industry, a whole universe of different types would be out of a job. I don't see it happening in my life time even if AI starts building stuff.