This is most likely either a muscle pain or a pain of APD - acid peptic disorder or 'gas pains'. Acid peptic disorder comprises several different conditions like acid reflux, gastritis, duodenitis, gastric ulcer, duodenal ulcer, etc.
Other causes of such pain can be: cholecystitis (gall bladder stones), pancreatitis, liver pain, gall bladder pain, pleuritis, rib bone pain, enlargment of spleen, splenic flexure syndrome (when a bubble of gas causes pain in this area) and rarely cardiac pain due to heart causes such as angina.
Considering the nature of your symptoms, your symptoms are not at all suggestive of heart pain and it is most likely to be a benign cause like muscle pain or APD.
However, all cases of pain in the chest need to be seen to be a doctor if they are persistent. If this pain recurs or becomes severe, you need to see a doctor for this.
For now, I would advise you to take the following steps taking this to be APD:
There are several OTC medicines which are generally safe which you can use for this. I would suggest Alka Seltzer two-three teaspoonfuls thrice daily. You should also take Cap. Prilosec 20 mg(OTC) once daily early in the morning.
You should also take healthy nutritious diet, avoid spicy and deep fried foods, have a bland diet as far as possible, have small frequent meals, cut down on alcohol and caffeine, stop smoking
You should also do these chest stretches which will help in muscle pain:
But you should also get a checkup with your doctor if this does not ease the pain.
Hope I have been able to clarify the situation for you and helped in resolving your query.
Please do give me feedback on how helpful my answer was to you. If you need more help, please let me know so l can continue to assist you.
Thank you and I wish you the best of health - stay safe!
Dr. P. Jyoti