Don't overthink this. We are only people, we make mistakes and can't predict the future. Learn from your mistakes and move on.
But everything can be prevented if we have the data to predict and analyze the movement of the market. With this tools it is a big help already to prevent yourself from regretting and the more you have your data the less you will regret your decision.