gh-111178: fix UBSan failures in Modules/_sre/sre.c
#128250
+56
−35
Merged