I leave my toothbrush in my tent at night to get air and dry. I’m more concerned about bacteria growth due to locking it in a opsak sealed bear bag overnight. Leaving it exposed in the mesh pocket of my pack to dry while I hike, sitting alongside with my washed and wet undies and socks and exposed to dust and bushwhacking mess never struck me as a hygienic option either.
Even in sites festooned with habituated chipmunks and squirrels that will attack an open food bag in minutes, I’ve never had a nightly visitor give a darn for the toothbrush.
I once had something scatter the heavy fireside log seating in the middle of the night in a provincial park back country site that must have been a bear looking for scraps left by messy previous tenants. There were no signs that it went anywhere near my tent or my ursack/opsak combo.
Then there are best practices for toothpaste spitting which will surely overpower the scent of the toothbrush. I spit into the fire pit if it’s an established site. I’ve heard arguments that burned toothpaste can carry on the wind and be picked up by a bear, but damned if you do and damned if you don’t.
I try not to carry any non food items with a stronger scent than toothpaste