raise ValueError when there are backrefs in regexes