/usr/bin/lex is in flex 2.5.39-8+deb8u2.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/flex
/usr/bin/flex