Regret and repentance are two different things.
Regret doesn’t cause change, you’re just sorry but you may do that thing you regret again. Repentance on the other hand leads to change. Prime examples of this are Judas who regretted betraying Jesus and Peter who repented from his betrayal of Jesus.
Joe explains more about this subject in this video.