Note to readers: This story has been updated from its original version with comment from Musk.

Federal regulators said Thursday in a lawsuit that Tesla CEO Elon Musk intentionally misled investors last month when he tweeted that he had "funding secured" to buy back millions of dollars in shares, and asked a judge to bar Musk from running the automaker and to repay investors for any losses.

The lawsuit by the Securities and Exchange Commission was filed in a federal district court in New York. 

In the 23-page allegation, the SEC lays out its case that while Musk had met with representatives from the Saudi Arabian sovereign wealth fund beginning in 2017, Musk's tweets Aug. 7 were baseless and false.

DON'T MISS: DOJ wants to know if Tesla CEO Elon Musk broke the law in going-private tweets

"less confirmed, key deal terms, including price, with any potential funding sourceIn truth and in fact, Musk had not even discussed, much less confirmed, key deal terms, including price, with any potential funding source," the lawsuit alleges.

“This unjustified action by the SEC leaves me deeply saddened and disappointed. I have always taken action in the best interests of truth, transparency and investors. Integrity is the most important value in my life and the facts will show I never compromised this in any way,” Musk said in a statement.

The lawsuit says that Musk met with representatives from the fund July 31, and discussed how the company could be taken private, although no commitments were made and no numbers were discussed.

The detailed allegations filed by regulators say that Musk notified Tesla's board of directors about the proposed bid days before his tweet, although he didn't include any price or plans for taking the company private. In the lawsuit, Musk acknowledged that his price of $420 per share was roughly 20 percent over the closing price of Tesla stock, which would have been $419. Musk said that he rounded the number up to $420 after learning the significance of the number in marijuana culture.

MUST READ: Saudi Arabia invests $1B in Tesla rival Lucid

Later, after the Aug. 7 tweet, Musk did not clarify his statements to investors, regulators, or the press. The lawsuit specifies texts and emails Musk received from the press, and his own staff, to clarify his statements.

On Aug. 24, Musk and the board publicly announced that the automaker would abandon its bid to go private.

The lawsuit seeks an unspecified amount from Musk for investors who may have been bilked by the tweets, and seeks to bar Musk from running a publicly traded company. Tesla has been a publicly traded company since 2010.