How do I clear deprecation errors for looping through element queries?
What about using the all() function as well? Your field doesn't contain an array, it contains the same type of object like craft.entries provides.

{% for flag in country.all() %}


It doesn't appear because you have a loop in a loop it appears because you treat and object as an array