Fix debug repr for regex on 3.x