I haven't and I tend to avoid Regex stuff as it's hard to read, but I tried to make a Kotlin script to do the same thing. I went quite far in the implementation but had to make some trade-offs, harcoding stuff for my projects, to not spend too much time. If you're interested though, I can show you, we can discuss it and maybe build upon my previous work.