You get oral herpes from kissing. That's it. All herpes transmission requires direct skin to skin transmission. You don't get it from things - you get it from people - kissing, receiving oral sex, sex, anal sex.
Ok one more question what if the person who has it toothbrush touch the toothpaste then they put toothpaste on your toothbrush and the toothpaste tube touch your toothbrush is it still no?
The only way to ever get herpes is direct skin to skin contact. If the person who shares the toothpaste with you kisses you on the mouth with a sore present, you might get it.
If you kiss them deeply - romantically - with a lot of friction, they can transmit it to you, sometimes without a sore present.
It always requires direct, skin to skin contact. You will not get it any other way.
If the person who has it kisses you on the cheek or forehead, you won't get it. It has to be on the mouth.