https://www.akc.org/expert-advice/nutrition/can-dogs-eat-tomatoes/#:~:text=Solanine%2C%20a%20substance%20found%20in,to%20dogs%20in%20large%20quantities.&text=The%20leaves%2C%20stems%2C%20and%20young,safe%20to%20feed%20to%20dogs.
FYI Only the leaves of tomato plants and green tomatoes are toxic...