I swore not to repeat the mistake again.
Yes
the people in the court room swore to tell the whole truth.
The villain swore vengeance on the superhero.
Andrea swore her new boss was the devil incarnate!
"meant a compliment", does not need a preposition
Savannah swore a VOW of vengeance against the man, the beast, that killed him.
has sworn
The bully swore he was dauntless so all the freshmen would fear him.
The student swore to keep his chastity at least through high school.
He swore on the honor of his knighthood that he would slay the dragon and save the princess.
They swore an oath to maintain concord between their two nations.
The past tense of swear is swore.