I was expecting there would be a micro-switch hidden behind the brake pedal, but I can't see anything front or rear on late model bikes (Real OEM).
I guess it must be triggered via the ABS system, pressure sensitive?? Presumably you have a working speedo & no other warnings.
Probably a question for your dealer. Google throws up a recall for a brake light issue in the US, but I think this related to modulating the light during emergency braking.
Every day is a school day - keep us advised.