Creating a custom jinja filter

Looking for exactly the same thing… want a regex_replace for this. Looks like there was a GH issue that’s been closed for now.