The informations come from the Wikipedia page regarding the 'List of national flags by design'.
This list contains national flags associated with fully autonomous countries that are in use as of October 2025.
Exemple of flags that don't work: Flag of Christmas Island, Flag of the Commonwealth of Nations etc...
Start by naming any country that France borders. Then name any country that borders any of those countries. Then keep going until there are no more countries left to name.