Use `KEYWORD_TERMINATOR instead of [^0-9a-zA-Z_] regex
Avoid using `REJECT, as it is thought to be very expensive