Former FBI Director James Comey has donated to a Democratic candidate running for Congress in 2018, according to campaign finance filings.

Comey, who until recently was a registered Republican, contributed the maximum individual amount of $2,700 to Jennifer Wexton in September, Business Insider reported Tuesday.

Wexton is the high-profile Democratic challenger contesting Virginia's 10th Congressional District against incumbent Republican Rep. Barbara Comstock. Comstock referred to herself as a former colleague of Comey's in her statement saying she couldn't "defend" President Trump's decision to fire the former head of the FBI from the bureau in May 2017.

Comey previously donated to John McCain's and Mitt Romney's respective presidential bids in 2008 and 2012, according to past Federal Election Commission filings.

Comey's choice to back a Democratic contender during November's upcoming midterm cycle comes as the FBI has been accused of potential political bias by Trump and his GOP allies for the way it has investigated the Trump campaign for links to Russia, as well as its probe into Hillary Clinton's use of a private email server while she served as secretary of state.

[Also read: Michael Cohen open to campaigning for Democrats]