Keep brew far away from your prod system. Everything you can‘t do in macos just use a vm.
Don‘t touch the system and Timemachine will never corrupt, its that easy in my experience.
But… brew doesn’t touch the system, and never did?
Even when it used /usr/local (before the root system became hard readonly) that was an unused folder path, and it explicitly refuses to install as root.
Even when it used /usr/local (before the root system became hard readonly) that was an unused folder path, and it explicitly refuses to install as root.