Rain lights are legal in Lemons, I've driven enough laps behind Product Saturn to know that.
Brake lights should ALWAYS be solid ON per FIA regulations. Rain lights should flash when the brakes are off, and then go to solid when the brake is applied. The flashing is higher visibility and helps cut through the rooster tails of rain behind the cars under power, solid under braking helps not to distract cars behind you going through corners.
A lot of other series require rain lights now, so expect to see one or a few cars on track with one.
Ours is tied to the headlight circuit though so we can just turn it off most of the time.
As for the fun/DIY aspect of this, real rain lights come in nice sealed boxes (you're driving in the rain after all), and custom printed boards and electronics have a bad habit of being "less than commercial quality" when it comes to corrosion or wire/solder joints just breaking from vibration or other racing environmental conditions. So I guess make yourself two of them and use quick disconnects on the wire connections just in case.
1989 Merkur XR4Ti: Project Merkur Space Program - Wins: Class C - Colonel and the Sinkhole 2023 | "Heroic Fix" The Pitt Maneuver 2023 | "Halloween Meets Gasoline" The Pitt Maneuver 2022
1980 Dodge Challenger: Most Extreme eLemonAtion Challenger (Rust Belt Ramble 2021 Dishonorable Mention)