In my first job (junior developer in end of nineties) I had NDA that prevented me to work on software industry for 2 years if I leave the company. I left to competitor but I was worried if they sue me. They never did, so then I learned it is just a scaring tactic's. Also, a lawyer told me later that not only it is illegal they also would need to fully compensate the period I am in quarantine.