Monkeypox isn’t a sexually transmitted infection (STI) per se (pdf), but it can be spread through close contact including sex.
While tracking is still insufficient to identify all cases, a majority of the monkeypox cases that have been detected outside Africa have been among men who have sex with men,