[fix] RegExp for templates