Test, validate and match regular expressions
This regex captures content around a SQL GROUP BY parameter referencing the Russian column 'Тип заканчивания' (Completion Type). It handles optional table prefixes (e.g., ' table.'), brackets, and backtick delimiters. With the 'gs' flag, it matches across multiple lines, making it useful for SQL query parsing and manipulation in JavaScript applications.