This is variable. It depends on how much of a trigger it was to you prior to your surgery. I would recommend waiting two or three months, because alcohol is very irritating to an area that has been through a lot already.
You're really the only one who can answer that question. Once you're feeling better and your healing has progressed, try a little and see how you do. If you feel fine, try a little more the next time. It's a trial and error thing...
Some here can drink coffee and wine with abandon after the initial healing. I'm not one of those. My stomach is very sensitive, so I drink both with care. I still drink them, but save them for special occasions and don't drink a lot.
Here's hoping you can get right back to your wine without any untoward side effects!
Words of wisdom by Eckhart Tolle:
"Whatever you fight, you strengthen, and what you resist, persists.”
“Worry pretends to be necessary but serves no useful purpose”
“Accept - then act. Whatever the present moment contains, accept it as if you had chosen it. Always work with it, not against it.”