Amend regex for templates to ignore inline queries