Sure, I did, unfortunately I did not saw the eval in the assignment , thats on me.
An associative array is an alternative, something like
declare -A dynamic_vars # Declare an associative array
i=10
pid=$$
varname="STATUS${i}" # Construct the variable part
# Store the value in an associative array using pid as part of the key
dynamic_vars["${pid}_${varname}"]="some_value"
# # Access the value
# A_VALUE=${dynamic_vars["${pid}_${varname}"]}
# echo "A_VALUE: $A_VALUE"
for i in "${!dynamic_vars[@]}"; do
printf '%s %s\n' "$i" "${dynamic_vars[$i]}"
done