As Zero999 points out, the timing precision isn't all that important. But you may want a microcontroller for features, e.g. flash for two seconds then keep the light on until the brake lever is released again. The microcontroller-based solution may also be more robust against failure modes like the "noisy signal" you get when a well-worn switch is operated just at the point between off and on (but this depends on your code and on the safety measures you use such as a watchdog timer).
Automotive electrics is notoriously hostile, full of noise and voltage spikes. Definitely add reverse bias protection, make sure the regulator powering the microcontroller is rated to survive at least +30 V (and ideally more), and add noise filtering. Also make sure it's fused in some way.
On a bike it also pays to have a good enclosure with some water resistance. For my own mods I got away with some pretty ghetto solutions, like just wrapping the electronics in a plastic bag and adhesive tape and cramming it into a rear fairing, but you can't sell that ... it has to be robust and to look robust, to look like it's worth the money. Make sure there is a way to mount it (at least mount points and zip ties).