With the P flag at the same level of nesting as the ::= assingment, after transforming the reference parameter to include the desired subscript:
P
::=
ref=var var='Some value' : ${(P)${ref/%/[1,4]}::='Cool'} echo $var
that should output Cool value
Cool value