There's a difference between not wanting to do something again because you learned that it was mistake and regretting having done it in the first place. I've made plenty of mistakes and learned to not do that thing again, but I don't regret them. After all, had I not made those mistakes, I wouldn't know that they were, in fact, mistakes.