That is indeed US-specific. I’m in the EU, and here it’s defined by when and how it’s switched. Specifically, it is required to be tied to the brake pedal (i.e. then intention to brake) and/or the hand brake being pulled. It is not allowed to illuminate otherwise. But the exact specifics probably also vary by country here. That’s why I emphasized that part.
EDIT: There are actually deceleration values in some laws, possibly tied to regulation of EVs and the regenerative braking. Since that isn’t necessarily tied to the brake pedal when silmulating engine braking, but can be adjusted in strength at will (it isn’t tied to the mechanics of the drag of an idling engine as it would with an ICE). A quick google told me that the lights are allowed to come on at 0.7 m/s² and are required to come on at 1.3 m/s². This obviously implies that they are NOT allowed to come on below 0.7 m/s². This still applies only to (pure) EVs, as far as I can tell (not hybrids, and not ICE powered cars).