Test, validate and match regular expressions
This regex is designed to extract key-value pairs from JSON-formatted strings. It captures the key in the first group, and then matches the value by capturing either a quoted string (second group) or an unquoted primitive like a number or boolean (third group). It is commonly used for simple data extraction when a full JSON parser is not available.