Finally, I was able to compile a version of OBS running natively on M1, that includes lua scripting, the Advanced Scence Switcher, and obs-ndi. I used the script by hakihaki95 and slightly modified it to avoid the error with python. I have attached the script and the notes/commands I used to compile the whole thing. This could probably be turned into a complete script by someone.
Does OBS Browser Source (CEF etc) work with your build?