When I was pregnant I cheated on my husband.
Did you come clean to your husband about this?
I told him about it later on.
You did come clean, which is admirable thing to do. Doing this was probably permanently damaging though to your relationship due to how wrong it is to cheat.
My husband doesn't care.
That's fine, but you should still never cheat again. Cheating can hurt everyone involved and is a very dangerous thing to do, I hope you've learned this lesson already.