Road bike tail lights have had IMU controlled brake light functionality for years. Even fairly cheap ones from Aliexpress. Example: https://youtu.be/iH-dYDkd_U0?t=123
I regularly ride both bikes and motorbikes and this never has been a problem, even though the lever that is the rear brake on the bike is the front brake on the motorcycle.