Assuming your bike is like mine and has Servo ABS, the brake microswitch is a tiny switch on the right hand handlebar behind the brake lever. Basically as soon as you start to pull on the brake lever, it causes the ABS pump to run and brings on the rear stop lamp. I doubt it will be a problem on your bike, but it is a small possibility.
Put the key in, let the ignition do the self test without the engine running, then gently pull the front brake lever. You should hear an electric 'wheeee' sound from under the fuel tank and the brake light should come on. Most importantly, when you release the brake lever the brake light must go out and the 'wheeee' sound should stop. If it doesn't your brake microswitch is either sticking or needs adjusting by the dealers.
Note that here should be a gap inside the handguard between the brake lever end and the handguard itself. If not, tap the handguard as necessary to rotate it up/down on the handlebar and reset the gap.