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.
Yeah, those contracts are not valid here as the right to livelihood will trump that contract.
So even if you sign that clause you are not bound by it.