High Heart Rate After Illness

26M/No Medications/No Smoking/Rarely Drink/GERD

5ft 8in / 155lbs / Caucasian

Hi all. About 4 weeks ago I was pretty sick with what I would assume some sort of respiratory illness that involved fatigue, wet cough, headaches, and other cold-like symptoms. Fast-forward 2 weeks after the illness, after a light workout, I noticed my resting heart rate was around 95 (normal is around 65-70). It's now jumping between mid 70s to upper 80s.

Other symptoms did include chest pain/ache that sometimes moves around my chest area and dry cough (no longer having any chest aches) It seems like it doesn't bother me as much when I'm up and moving around, but is more noticeable when I'm laying down or resting. This is also causing me some anxiety which I assume doesn't help the situation.

Is this possibly just an immune response from my sickness? Acute pericarditis?

Any advice is appreciated. Thank you!