Yeah, the best way to put it that I've seen is that tomatoes are botanically fruits, but culinarily vegetables.
In fact, "vegetable" is not a botanical term at all
In fact, "vegetable" is not a botanical term at all