We must not say that every mistake is a foolish one.
How do you learn from mistakes? The only way to make use of mistakes is to properly reflect on them, learn and then act differently. If you seem to be plagued by making the same mistake again, and again it is likely not the mistake itself that is the problem. It may be a lack of honest reflection and appropriate action.