Solved problem on linux for decades:
https://gothub.dev.projectsegfau.lt/alobbs/macchanger
Yes it’s not like this is the first tool to do this on macOS; e.g., https://github.com/acrogenesis/macchanger