can soda irritate gums
The baking soda won't be causing any irritation to your gums. Possibly something else in the toothpaste may be. Suggest you try a different brand of toothpaste. If the problem persists, then you should return to your dentist, as it could be a different problem.