No, he was not working for a foreign government, he was working for a private Dutch company called Inovo BV.
The company is, however, owned by a Turkish businessman. The businessman was alleged to ‘have ties’ to Erdogan, but that’s pretty vague, like Trump’s alleged ‘ties’ to Epstein turned out to be.
The reporters must be a bit fuzzy on their allegations too since they only said Flynn ‘might have aided the government of Turkey,’ rather than making the usual prejudgement and claiming he did.
Also, the judge has since thrown out Bijian Khan’s conviction, smacking the juries judgement in the process.