less generally uses vi syntax, i.e. \< and \> unless it has been compiled with the --with-regex=none configure option or if the regular expression library found at compilation time doesn't provide word boundary search. Your system might also provide a different syntax.