Even more weirdly, pumpkins are berries. But that’s a botanical definition. In the kitchen they (and tomatoes) are classified as vegetables.

Same with cucumbers and a lot more "plants" :-)