How to specify a template for a path like http://example.com/something?

You’re looking for the “custom post type archive template”. That’s archive-{post_type}.php, or in your case archive-explore.php:

https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/