D..
I tore cartilage between my ribs coughing because of the flu. I can't imagine the damage I would do with whooping cough. I'm glad you haven't done that. It is just awful.
That being said, I wonder if you could ask the doctor now for a cough suppressant that is safe for pregnancy so that you can quiet the cough enough to sleep. My doctor told me that my cough wasn't productive and it was okay to quiet it. The trick is to get a medicine that is safe in your last trimester.
So sorry you're going through this. Shame on the person who didn't get vaccinated and gave you their germs!!