Have you been to the doctor? RSV is quite prevalent this year. And cough that is a bit relentless is a symptom. Also, unfortunately, once our respiratory tract gets irritated, coughs can linger for quite a while after a virus has dissipated. Do you have a fever? I'd see a doctor for a cough that goes on for three weeks. I'm sure you are exhausted. Sleeping with a cough is tough.