Test, validate and match regular expressions
Matches Markdown task list checkboxes, e.g., '- [ ]' or '* [x]', covering both unchecked and checked (x/X) states with list markers of hyphen or asterisk. The negative lookahead (?![ : ]) ensures the checkbox is followed by actual task text rather than extra spaces or a colon, filtering out malformed items. With the global flag, it's ideal for scanning post-deployment checklists or TODO items in Markdown documentation.