Add regex templates for python