Let's introduce reverse non-competes. Reverse non-compete forbids the employer to hire anyone who's directly competing with me on the labor market for one year after my resignation.
That's basically how it works in Sweden. If you are terminated (without cause), the company isn't allowed to employ other people with similar skill sets within a year unless they also give you an offer to come back.