AFAIC non-competes are a violation of labor rights (even the supposedly ‘necessary’ sectors like tech.)
I should be able to offer my labor anywhere I want. If the knowledge I gain on a job is soooo valuable to that company that my leaving would cause them financial difficulty, perhaps they should pay me more so that I might stay. And if they want they want to fire me or lay me off, they should have to worry about the implications of me taking my skills elsewhere, and include that in the calculus used to make the decision.