Acetaminophen a.k.a. Paracetamol N-acetyl-para-aminophenol (APAP) : https://en.wikipedia.org/wiki/Paracetamol
Ethanol (Ethyl Alcohol) : https://en.m.wikipedia.org/wiki/Ethanol
Cytochrome P450 (Metabolism) : https://en.m.wikipedia.org/wiki/Cytochrome_P450
search: >list:'Cytochrome P450 Interaction'< @DDG : <https://html.duckduckgo.com/html/?q=list:'Cytochrome P450 In...>
search: >scholar:'Acetaminophen (N-acetyl-para-aminophenol, Paracetamol, APAP) Toxicity'< @DDG :
<https://html.duckduckgo.com/html/?q=scholar:'Acetaminophen (...>
If you've drank enough over the years to permanently damage your liver, there are ton of medications you can no longer take (and ibuprofen is one of them), but if your liver is still working properly, taking ibuprofen is safe - even with alcohol.
and b vitamins (b12 seems to have the greatest effect on reducing hangovers, and i've heard alcoholics tend to be b6 deficient so can't go wrong w that too)