Since macOS Monterey, there's Siri Shortcuts app and I use it to toggle my light on my Mac.
It can trigger by a shortcut key, let's say CMD+CTL+OPT+L.
Then, I create a TouchBar button to trigger that key.
Of course, native support by BTT is better than such indirect solution, LOL
good workaround! you can also use the „run shortcut“ action in BTT to run that shortcut