Here in Sweden non-competes without a financial agreement is void. And those that offer some financial are probably OK, but haven't been tried extensively.
The non-competes I've signed have offered 60% of my base pay for six months (the length of the non-compete) if I cannot find a job because of the contract if the company exercise it.
They never have exercised it for me.
In New Zealand it has been like that for ever, but no one knew, and employers used them and employees abide.
Partly it was naked power.
Those sorts of agreements are generally still allowed with these anti non-compete laws. If there is a specific non-compete contract that is signed, with money being paid for it directly, that is fine. That is a normal contract where both sides trade something of value.
The types that are banned are ones that set the restriction as a part of a normal employment contract, where there is no specific compensation given for accepting the non-compete and where the employee can't decide to abandon the non-compete in return for not getting the extra money.