Rep. Parker Griffith (R-Ala.), a former Democrat, said Thursday that his decision to switch parties probably cost him his congressional seat, but added that he does not regret his decision. 

Speaking in his home state, the freshman congressman said he respected the decision of Republican voters, who chose Tea Party-backed candidate Mo Brooks in Tuesday's GOP primary. 

"I do not regret changing parties," said Griffith. "I think it may have been, politically, a mistake, but on principle, it was the right thing to do."

The Alabama lawmaker switched parties in December 2009, right before the vote on healthcare reform legislation in the Senate, saying the Democrats' agenda is too extreme. 

Griffith did not back down from that stance Thursday, saying President Barack Obama and House Speaker Nancy Pelosi (D-Calif.) are both "socialists" and that the healthcare law needs to be repealed. 

VIDEO