Build, test, and debug regular expressions
Matches lines describing hierarchical relationships formatted like '...for <name> (<N> parent ... <M> children ...', common in process/thread tree or dependency reports. It lazily captures the entity name after 'for', the parent count, and the children count into three groups while skipping surrounding text. With the global flag, it extracts all such entries, making it useful for parsing logs or tool output that summarizes parent/child counts.