Test, validate and match regular expressions
This regex matches single-quoted strings containing an unescaped apostrophe, typically used as keys or values, followed by a colon or comma. It is specifically designed to identify improperly escaped single quotes within pseudo-JSON objects or dictionary formats (e.g., 'O'Brien', or 'John's':) for sanitization or formatting.