In the Unites States most major medical insurance plans now also pay for Gardasil 9 for men who have sex with men up to age 45. That started in 2019 - so it is a fairly recent development. I have been recommending it to my younger gay friends and got the shot myself - I had to get two shots about 6 months apart if memory serves.
As always, it is best to consult with a medical professional before you make a final decision.