Josie Stewart was sacked by the Foreign Office in 2022 after being accidentally identified as a confidential source by a BBC journalist.