New York congressional candidate and Democratic socialist Alexandria Ocasio-Cortez has repeatedly castigated ride-sharing giant Uber and blamed its "unregulated expansion" after a yellow cab driver commited suicide, but her campaign has taken nearly $4,000 worth of Uber rides between April and late June.

Ocasio-Cortez, who became a household name after defeating Democratic incumbent Rep. Joe Crowley (D., N.Y.) back in June, has criticized Uber several times on Twitter as recently as March, in a post flagged by Fox News.

"NYC's fourth driver suicide. Yellow cab drivers are in financial ruin due to the unregulated expansion of Uber. What was a living wage job now pays under minimum," she tweeted.

NYC's fourth driver suicide. Yellow cab drivers are in financial ruin due to the unregulated expansion of Uber. What was a living wage job now pays under minimum. We need:

– to call Uber drivers what they are: EMPLOYEES, not contractors

– Fed jobs guarantee

– Prep for automation https://t.co/FjfapJV2ni — Alexandria Ocasio-Cortez (@Ocasio2018) March 21, 2018

The yellow cab driver, Doug Schifter, killed himself with a shotgun amid financial difficulties in response to multiple cheaper alternatives to the yellow taxi, as addressed in his Facebook status.

Ocasio-Cortez's campaign staff recorded spending nearly $4,000 on 160 Uber rides between April and late June, according to Federal Election Commission (FEC) records. The Uber payments ranged from just 59 cents to $82.26 and were filed under "car service," according to Fox.