The flag files are curtesy https://flagpedia and according to their website are in the public domain,
completely free for commercial and non-commercial use, based on vector files from Wikimedia Commons.