Flag icons are set automatically using your location from the time you first logged in.
When near the border of another country, it may be that the system will assign the flag of the neighboring country.
The flag may also be inappropriately assigned when using a VPN.
Changing your flag is not possible.