Pain made worse by the cough
is likely a pinched nerve
from arthritic pressure and/or a herniated disc.
This is further evident from the shooting pain into the shoulder and arm/hand. An exam by your doc can help determine if there is significant injury deserving of further studies or treatment. No hurry if not worsening, but, should be seen if not getting better. Nonsurgical usually successful.