Both. It is very important to forgive and be kind to yourself but in the same time regret is a very important emotional state that we go through because it's the only way we learn not to do something horrible again and it's not just about you, it's also about the person you may have damaged you must strive to make things right with them if you have the opportunity