Removing brackets from an IPv6 address in Terraform
replace(openstack_compute_instance_v2.INSTANCENAME.access_ip_v6, "/[\\[\\]]/", "")
# If using counts
"${replace(element(openstack_compute_instance_v2.INSTANCENAME.*.access_ip_v6, count.index), "/[\\[\\]]/", "")}"