https://oxjs.org/#doc/Ox.COUNTRIES
https://oxjs.org/#examples/countries/live
(The latter has a menu to show more than just current sovereign countries.)
Edited to add: In https://trac.oxjs.org/browser/oxjs/tools/geo you'll find the python toolchain to automatically generate the flag images.