It can be pleurisy
again that causes such type of sharp stinging or pricking pain.
A pain generally in the middle of the chest is not characteristic of it however it is not unusual.
The pain can also be sometimes due to gastritis
but it needs further evaluation and hence you need to see a doctor.