My GI doctor prescribed me Colesevelam for that. It’s a cholesterol drug but it’s used off-label for treating post-cholecystectomy diarrhea. Looks like cholestyramine is also used for that. Worth asking your doctor about. It worked for me after we dialed in the dosage.