That's a fairly complicated system to replace what is just an ultra simple switch at the pedal. The latter is even pretty likely to last the life of the car.
I was thinking about this last time I drove an ev (ioniq 5). It will really decelerate quite hard when you lift off, and it's configurable by the driver.
I don't think they need to do it with an accelerometer, but if the regeneration system is applying more braking force than it would take to turn on the light with the brake pedal, it should turn the light on.
Either that or they should require the brake pedal to be used beyond that point.
Edit: actually it just occurred to me that it might be no worse than downshifting in a normal car. Maybe it's not a big deal.
An accelerometer isn't a good idea; but if the car's systems are responding to a command from the driver to slow down, be that a press of the brake pedal, lifting off the accelerator in a car designed for 1-foot driving, etc. it should illuminate the stop lamps.
The i5 does turn on the brake lights when you use regen modes. They did have a firmware update to make the logic a bit better earlier this year though.