Add locations argument to re_matches