Variables not taking multiple values

couldn’t use multi-value variables in creating other variable.

example:
$envs a,p,t – A custom variable with csv data
ec2_instance_attribute(eu-central-1, InstanceId, {“tag:Name”:["$envs"]}) – it’s not working or taking only “a”