Merge images with only specified pixels

Hello everyone
I couldn’t find anything related to the task I’m trying to do.
For example, I want to add only the pixels that are pink color in the image with another image.
How can I combine two images and only use specific pixels?

https://docs.opencv.org/4.x/da/d97/tutorial_threshold_inRange.html

https://docs.opencv.org/4.x/d2/d96/tutorial_py_table_of_contents_imgproc.html