Auto Adjust Brightness Secondary External Non-Apple Monitor
Solution 1:
Lunar is a macOS app that can do exactly that.
Its Sync Mode can detect the automatic brightness changes that macOS does to the built-in display, and sync those changes to the external monitors in a way that the perceived brightness is matched across all monitors.
Disclaimer: I am the developer of Lunar