Welcome to HealthcareMagic. The kind of pain you mentioned, if you are a smoker or else due to some lung problems , might be due to formation of small air pockets in pleural space(pneumothorax
), which at times get resollved on by own or with oxygen therapy
. It could be as simple as a muscle spasm, a back muscle/ ligament sprain
.Specially, sharp pain
related to cough or breathing are generally related to pleura(sac, covering the lung), which is probably post some lunf infection. So better wait and keep seeing your doctor.Get well soon.