I’ve been down this path (it was a script for scraping and extracting text). You write your text utility in bash. It works. Then you need a regex so you use sed.

Then you wonder why it doesn’t work in your other environment. Then you find that GNU vs BSD sed have different syntax.

Better to start with Python once you’re doing more than coordinating well known other tools.