Test, validate and match regular expressions
This regex matches incomplete or in-progress JSON by finding a comma that follows a value-ending character (like quotes, brackets, braces, or numeric patterns), then captures a subsequent key and colon. It's useful for parsing partially typed or truncated JSON structures where standard JSON parsers would fail. The non-greedy key capture allows for flexible key matching in malformed input.