Berberine may mildly inhibit aromatase (CYP1A2) and CYP3A4 (an enzyme responsible for testosterone breakdown and PDE% inhibitors like viagra)

Unfortunately, berberine may be a very strong 5AR inhibitor
However, this is based on assumed chemical properties, not even in vitro, let alone in vivo study.
I'm skeptical of the results, as other compounds identified in this study as likely 5AR inhibitors, like stearic acid, actually seem to have no effect on 5AR in in vitro study.