[FIX] Update regex for getting template name to be more specific