Due to a recent SQLGlot commit, the double brace token is no longer mapped to BLOCK_END. In the case of MacroExtractor.extract, we're referencing BLOCK_END, assuming that the mapping hasn't changed.
EDIT: after SQLGlot ≥v11.1.3 is deployed, the same problem will occur for BLOCK_START ({{) (tobymao/sqlglot@e8f8bb5)