Calling variables, dynamically
Not sure if you saw this, but you may also be able to use the Twig attribute function:

{{ attribute(array, item) }}


Pretty straightforward, here's the official docs page...