orignal question and image:
https://www.reddit.com/r/regex/comments/q8igd4/how_can_i_group_the_second_green_group_end_of/hgpydig/?context=3