Bad cough pregnancy

I’ve had a bad cough in my pregnancy (in my last trimester) which had lasted 2 weeks so far. Anyone else had a bad cough that lasted ages & any advice on what can shift it?