Yes, OC - let go. You can’t help her. You did your best. Your focus needs to be on you and your kids.
Jail might be good for your ex - it might be her only chance at sobriety. Not that jail is ever a good thing, but there might not be any other way for her to be sober long enough for it to “take”.