I've been on escitalopram for more than 10 years and it had the opposite effect on me. It improved my confidence and sexual drive no end. I did have a problem when stopping Diazepam suddenly. Complete depersonalisation and zero interest in sex. At least they appeared to be related. Things perked up no end when I restarted Diazepam.
In any case, there's a strong possibility that sex drive, erections, etc, etc may be related to other things other than SSRIs. It's important to remember that correlation does not necessarily mean causality:
https://en.m.wikipedia.org/wiki/Correlation_does_not_imply_causation