In 2018, I had an infection and I basically couldn't eat or drink almost anything without throwing up, even a sip od water would make me sick for hours. The antibiotics made it even worse.
I lost over 15kg in 2 weeks, I legit thought I was going to die. It took almost 2 years before I could eat normally again.
Almost this exact same thing happened to me but mine only lasted 6 weeks. Doctors couldn't figure it out. I was so thirsty from not being able to drink anything. Lost about the same amount of weight as you in the same time frame. My arms looked like heroin addict's from all the poking the doctors did trying to find my veins. Needed cancer treatment grade anti nausea meds just to slightly reduce the vomiting.