It sounds as if your lungs are very sensitive to the irritant effects of
smokingQuitting smoking
Smoking - tips on how to quit
Smoking and copd (chronic obstructive pulmonary disorder)
Smoking and smokeless tobacco
Smoking hazards, especially if your chest discomfort occurs only when you smoke. But, we should not assume that smoke is the sole cause of your "stabbing pain". There could be something else going on in your right lung. You should have a chest x-ray to rule-out that possibility.
It is also possible that you are experiencing the symptom of acid
refluxGastroesophageal reflux disease
Gastroesophageal reflux in infants
Hiatal hernia repair
Reflux nephropathy
Vesicoureteral reflux, gastroesophageal reflux disease (GERD) that is increased by smoking and alcohol.
Yet, there is another, serious possibility and that is that you are experiencing chest pain due to heart disease, the smoke in this instance causing spasm of the coronary arteries, with a reduction in blood flow to the heart muscle. You should discuss this with your doctor and explore this possibility that you could have heart disease that, until this moment, has been silent.
In any event, you made a very good decision to stop smoking and we sincerely hope that you will stick to that decision.
Good luck.