Des Rätsels Lösung war es die (scheinbar) neue config() Funktion in Twig zu benutzen und die IF abfrage für den For-Loop in den loop selbst zu packen, mein Code sieht nun folgendermaßen aus
{% set hidePricesConfig = config('ASHideProductPrices') %}
{% set showPrices = false %}
{% set break = false %}
{% for customerGroupID in hidePricesConfig.config.allowedCustomerGroups %}
{% if not break %}
{% if (customerGroupID == context.currentCustomerGroup.id) %}
{% set showPrices = true %}
{% set break = true %}
{% endif %}
{% endif %}
{% endfor %}