Bug fix: fixing regex issue in lex