Elon Musk was on the front row at Donald Trump's second inauguration and has spent hundreds of millions of dollars trying to help the Republican president and his 'Make America Great Again' allies win elections.

Now, after Republicans' midterm thrashing by Democrats, the world's richest man insists he is not a MAGA acolyte after all and feels 'pretty foolish' for spending so much money on the cause.

'I mean, I'm not MAGA,' Musk told The New York Times on Wednesday during the newspaper's DealBook Summit. 'I'm not sure what MAGA means,' added the Tesla and SpaceX CEO, who once sported a black MAGA hat in the Oval Office and coined the 'Dark MAGA' label. If that means 'sort of blind adherence to a set of policies by the Republican Party, then I certainly don't have that,' he continued. 'I think there are positives and negatives in both parties.'

Musk, who has based himself and several of his companies in Texas, spent more than $400 million on Trump-aligned Republicans running in November. That included around $200 million backing Texas Senate nominee Ken Paxton, who lost to Democrat James Talarico.

At the Times' event, Musk said if he had a do-over, he 'probably' would have 'spent less money' on the midterms. 'I feel pretty foolish about having spent so much money and not seeing much for it,' Musk told columnist Andrew Sorkin. 'Or maybe it would've been much worse without that. But it certainly shows that American elections are not just about money.'

Trump, whose relationship with Musk has ranged from ally and trusted adviser to pariah, reacted Thursday with a seeming shrug. 'He's a friend of mine,' Trump told NBC News in a telephone interview. 'Elon's got very good intentions. I mean, he was with me the whole — he traveled with me.'

Trump, his friendly remarks notwithstanding, offered his own prediction about Musk's future. 'MAGA, to me, means something very specific,' the president said, without elaborating, 'and when people veer from it, they don't do very well.'

Democrats scored sweeping victories after making Musk, other tech titans and the proliferation of artificial intelligence and AI data centers a campaign focus. They plan new scrutiny on the industry, including congressional investigations into tech firms' dealings with Trump and his administration, as they prepare to take control of Congress and many more U.S. statehouses in January.

Musk sat alongside other Big Tech billionaires at Trump's inauguration and led the president's Department of Government Efficiency, a post that for months made him the most high-profile figure in the administration other than Trump himself. Some Democrats were unimpressed with Musk's change in tenor. Responding to Musk's turnabout on X, the social media platform that Musk owns, Sen. Ruben Gallego of Arizona was concise: 'You are still getting a subpoena.'