An optional parameter defines the recursion regex, that match potential closers. For example, %sh{ ... } blocks support nested { }, so defining \{ as the recurse regex make the region highlighter correctly match %sh{ ... { ... } ... } constructs