Help creating a filter macro

If you will post your exact source text, in a KM Code Block, then I will try to help.
Also, it would be most helpful for you to post the actual Regex101 snippet link, rather than just the main web site.