Routine full panel std checks when you have a new partner or if you have an accident like say when visiting a sex worker are a thing, enough that you can order one at a bulk lab diagnostics service for relatively little (it's still expensive but not prohibitively so, and some nonprofits offer them for free)