Fix underscore escape template regex.