Fix bug with re_fullmatch for nontrivial flags