Staying in relationship

So I have been one to stay in my relationship despite him cheating. I haven’t stepped out on him. I see everybody saying things about how stupid people are for staying with cheaters and were just setting our self up for more hurt. I get that. But idk why I can’t detach. Maybe i want to see if he’ll change. Maybe i just love him. Maybe i don’t get want our family to break up. I know i shouldn’t care about those things being that he didn’t care while doing things. But idk. I honestly don’t know what to do. I guess I just have to hope for strength and finally realize my worth. But how do you get there?