Hello everyone, Boo here.
Today is the second and final part of replacing the front brake light switch on my G650GS (part 1 covers the preparation).
While checking how the brake switch cable is routed, I cut the cable ties holding it.

The brake switch cable follows the yellow line in the photo above.

The brake switch cable runs from the handlebar past the steering stem, down the inside of the right fork leg, and then under the frame to the left side of the bike.
By the way, the brake switch cable is black with a grey stripe, which helps you tell it apart from the other cables.

The brake switch cable passes under the main frame and comes out on the left side of the bike.

The photo above was taken from the left side of the bike.
The cable coming from the right side of the bike runs behind the frame, as shown by the yellow line.

The cable that runs behind (under) the frame comes out near the battery and the connectors.
Once you have routed the cable this far, the routing is done.

Now to route the new cable.
I loosely fitted the switch to the handlebar and fed the connector end from near the steering stem towards the frame.

Pass the cable under the frame and route it to the left side of the bike.

Once the cable comes out on the left side, feed it between the coolant reservoir and the frame.
This is the tricky part.

You have to bring the connector up from below the frame, but there isn't enough room for the connector to pass unless you move a plastic part out of the way.

The plastic part is held on a tab sticking out of the frame, so you have to pull it off.
It is a tight space that is hard to get your hand into, and it takes some force, so it is a struggle.

This is the plastic part off the frame.
The plastic part fits over a mushroom-shaped tab that sticks out of the frame.

This is the same photo as before: with the plastic part removed, there is room for the connector to pass.

Once the connector is through, tuck the spare length of cable into a gap and plug in the connector. That completes the brake switch replacement.
Then refit everything you removed, in the reverse order, and the job is done.
It was a lot of work, so I hope this post helps someone.