Build scripts are often written in bash, yes, but I would say that you should find a utility program, or write your own utility in python, if you're breaking out sed. It's very hard to read code like this, no matter the team size.
There's probably only 100-300 usages of sed in the entire nixpkgs repo, with over 100,000 packages.
I definitely agree Linux is easier to maintain and build code on than Windows, but yeah abusing sed is not really an ideal use case 😅
Tell Russia that, the EU never turned them off or stopped ordering. It was Russia who turned them off to try to bully the EU.