HF RL Explorer

Add capture group option for GrammaredSequence.to regex fixes 1431

Add capture group option for GrammaredSequence.to regex fixes 1431: a task in life-science-SWE1.0 (Harbor dataset). Title: Add capture group option for GrammaredSequence.to regex fixes 1431

The task

**Title:** Add capture group option for `GrammaredSequence.to_regex` fixes #1431

Part of scalingX/life-science-SWE1.0.