HF RL Explorer

fix(battery): fix regex compatibility with GNU grep in macos

fix(battery): fix regex compatibility with GNU grep in macos: a task in github-trending-environments-10k (Harbor dataset). Title: fix(battery): fix regex compatibility with GNU grep in macos

The task

**Title:** fix(battery): fix regex compatibility with GNU grep in macos

Part of scalingX/github-trending-environments-10k.