Neither standard nor extended regular expressions support the look behind. Use Perl compatible regexes:
grep -P '(?<!\\)xxx' test.tex
Neither standard nor extended regular expressions support the look behind. Use Perl compatible regexes:
grep -P '(?<!\\)xxx' test.tex