I have been dealing with a similar problem with alcohol, especially since the pandemic has left us stuck at home.
I just started a medication that may help you. it’s Naltrexone. It’s used to treat opioid addiction, and is also very successful for alcohol, especially if you want to significantly reduce but not necessarily completely give it up. There is something called “the Sinclair method” where you take the medication an hour before you have a drink. The medication reduces the pleasure your brain gets from drinking. So after a couple drinks you don’t feel the need to continue.
It’s been very helpful and allowed me to significantly reduce the amount I was drinking.