(?sm)applies the following effective flags to the remainder of the pattern: gsm s modifier: single line. Allows a dot to match line terminators
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
\[the literal [ (9110 / 1338 / 5B16)
json]:#the literal text json]:# (case sensitive) \s*any whitespace character, repeated any number of times
\(the literal ( (4010 / 508 / 2816)
.*?any character, repeated any number of times
^start of line
\)the literal ) (4110 / 518 / 2916)
g modifier: global. Finds all matches instead of stopping after the first