It is not bad luck. The people you end up with are not randomly drawn. There is a pattern, and if you look at it honestly, you have probably already noticed it.

The nervous system mistakes familiarity for safety. The emotional dynamics that were present in your earliest significant relationships become the template for what feels like love. Even if those dynamics were painful.

This is not a flaw. It is a feature of how attachment works. The system learned something. It is applying that learning.

The pattern does not change just from noticing it. But noticing it is necessary. The moment when the familiar pull toward a particular kind of person becomes visible as a pull, rather than as fate or chemistry, is the moment when something different becomes possible.

You are not choosing badly. You are choosing the known. The question is whether the known is what you actually want.