How to use regex patterns for entity recognition?

it appears regex could be before intent according to the documentation here NLU Training Data