Welcome to e health forum.
Description of your chest pain - appears to be due to - conditions associated with chest wall inflammation, pneumonitis and or lung scarring related to prior chest infections.
The chest wall includes the skin, ribs and muscles that surround the ribs. Chest wall pain is usually caused by injury, inflammation or infection of these structures. Common causes for chest wall pain include: muscle strain, chest contusion, and costochondritis.
Other possible causes can be due to functional disorders like fibromyalgia.
For proper diagnosis you may benefit by consulting with your doctor for a examination and a few tests including a chest Xray which can rule out other severe causes of your symptoms.
For the time being taking antiinflammatory medications - like Advil, would help you manage your symptoms. Once proper diagnosis of your condition is done, specific treatment may be initiated by your doctor.