How to detect the light of red laser (small dots) using C++?

I am working on a project to detect the contours of a red laser. When the light appears, the center of that light is orange-yellow, but the borders are red. How can I detect the contour?

dial the exposure down so it’s not saturating the sensor and bleeding into other color channels

or make your mask include not just “red” but also saturated red with some green (=yellow)