I have a python list as a string with the following structure:

```py
var="["127.0.0.1:14550","127.0.0.1:14551"]"

```

I would like to turn the string into a bash array to be able to loop through it with bash:

```sh
for ip in ${var[@]}; do

something

done

```