I can't speak for Massachussetts, but in Washington state non-competes have to be narrowly tailored resulting in them being relatively hard to enforce.
Looks like there are some new moves afoot to try once more to restrict or ban non-competes. Sadly there are many older, established tech companies in MA [with deep lobbying pockets] that oppose this.