Hello and thank you for posting your medical question on E health forum
Based on the history, it seems that you have had a bout of food poisoning (campylobacter) resulting in severe inflammation of the intestinal lining.
Post infectious diarrhea, it is common to have symptoms as yours as the enzymes situated on the mucosal surface that metabolise simple sugars are washed away by the diarhea and it takes time for the intestines to recover. In the mean time the bacteria in the intestines ferment the sugars anaerobically to produce lots of gas.
This is a benign condition and will subside soon. This repair of the intestinal lining will take some time, and it might be beneficial to avoid meat and high protein diet for a week or two.
Probiotic medications will help in the gut recovery.
I hope this helps