the literal ↵ (1010 / 128 / A16)
^start of string
\$the literal $ (3610 / 448 / 2416)
.*any character (except for line terminators), repeated any number of times
\}the literal } (12510 / 1758 / 7D16)
Group 1() — does not consume characters
}the literal } (12510 / 1758 / 7D16)
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first