Provided herein are compounds of Formula (I), (II), (III), or pharmaceutically acceptable salt,
prodrug, or stereoisomer thereof, and compositions thereof, wherein R1, R1′, R2, R2′, R3, R4, R5, R5′, R6, R7, R9, R9′, R9″, X, and Z are defined herein. The disclosed compounds are useful for treating various conditions, including alcoholism,
substance abuse disorder, and
opioid use disorder