Scientifically speaking, a tomato is definitely a fruit. True fruits are developed from the ovary in the base of the flower, and contain the seeds of the plant (though cultivated forms may be seedless). (google copy paste lol).
We imagine a tomato as a vegetable bcz it tastes like other vegetables, but the truth it, its a god DAMN FRUIT.