Welcome to Health Care Magic
Your pain doesn't suggest heart problem.
Probably it is anxiety
It is unlikely to do anything with childhood pneumonia
See a doctor / get yourself examined / have basic investigation like ECG, X-ray chest and lab - more to reassure and exclude....
Wishing speedy recovery