Judas was aware of his condemnation and regretted betraying Yeshua, but He didn’t repent. This led to him killing himself.
Matthew 27:3 (NKJV)
Then Judas, His betrayer, seeing that He had been condemned, was remorseful and brought back the thirty pieces of silver to the chief priests and elders,
Peter betrayed Yeshua, but his repentance led to his restoration, and he was one of the apostles through whom we received the Gospel…
John 21:15-17 (NKJV)
15 So when they had eaten breakfast, Jesus said to Simon Peter, “Simon, son of [a]Jonah, do you love Me more than these?”
He said to Him, “Yes, Lord; You know that I [b]love You.”
He said to him, (A)“Feed My lambs.”
16 He said to him again a second time, “Simon, sonof [c]Jonah, do you love Me?”
He said to Him, “Yes, Lord; You know that I [d]love You.”
And he said to Him, “Lord, (D)You know all things; You know that I love You.”
Jesus said to him, “Feed My sheep.
Remember, repentance is more than regret. It’s a total change of mind, and change of direction.