Regret is an act to acknowledge any mistakes or sins that have been committed. Regret is a bridge to connect from the ugliness zone to the zone of goodness.
As we know, the best people are not people who never make a mistake. But the best man is actually a man who made mistakes and then realized and repent for his mistakes.