Fix end-of-code-block template token regex