This mass should be examined by a doctor .If pain is radiating from touch, it means it is an inflammatory mass.
FNAC( Fine needle biopsy) for diagnosis may be needed.
As you have had chest infection
, could be some infected cellulitis
, abscess formation may be taking place.
400 mg thrice a day and tramadol
50mg twice a day.
Quit smoking as smoking leads to cancer