What happens if humanity stops having sex for a decade

Let's say a new STD is discovered that is like covid and it takes us 10 years to develop a vaccine/cure, so everybody stops having sex for a decade or two ( and the ones who do, die).