I have this string

`blabla [IC="test"]Hello, [IC="testing"] this is a nested tag [EC], cya.[EC] blabla`

I'm trying to match the outer `[IC="..."]...[EC]` so I can get

`[IC="test"]Hello, [IC="testing"] this is a nested tag [EC], cya.[EC]`

I currently have this

`\[IC=\"([\s\S]*?)\"]([\s\S]*?)\[EC]\n{0,1}`

But its not matching it until the last closing tag `[EC]`

This is an example of my code on [regex101](https://regex101.com/r/VIGwMg/1)