A string with this format

```
aaa,bbb,ccc,ddd,pattern:[[xxxxxxxxxxxx],[yyyyyyyyyyyyyyy]],eee,fff,pattern:[[eeeeeeeeee],[fffffffff]]

```

How can I use sed to replace pattern:`[[ ???????????? ]]` with null

**Example**

`sed s/pattern:[[ ????????? ]]//g`

I tried `sed s/pattern:\[\[\([^]]*\)\]\]//g`
but it does not work.