You can do this pretty easily with a 3 position rocker switch but use it backwards.
Normally you would run power into the input then one output from position 1 and one from position 2. Instead run power from your brake light into the position 1 output and constant power into position 2 output. Then connect the input of the switch to the blue wire. That way when your switch is in position 1 your brake lights and blue wire are connected. When the switch is in position 2 your constant power and blue wire are connected.
Your red and black wires would be connected normally to 12v and ground