[feature/twig] Fix a regular expression

PHPBB3-11598