Ultimately it depends on the semantic meaning when you say 'nut'. They are not 'nuts' in terms of the technical definition, but they are in terms of 'what most people think of when you say nut'.
There's also some things with nut in their name. c.f. Nutmeg, coconut.
As others have mentioned, same kind of deal with 'berry'.
And to follow up, if you're travelling abroad it's worth noting that some countries have different naming structures/separate out the families of 'nuts'. So be careful if you're asking if something has 'nuts' in, there can be a language barrier. e.g. tree nuts vs. Lupins (peanut family).
There's also some things with nut in their name. c.f. Nutmeg, coconut.
As others have mentioned, same kind of deal with 'berry'.
And to follow up, if you're travelling abroad it's worth noting that some countries have different naming structures/separate out the families of 'nuts'. So be careful if you're asking if something has 'nuts' in, there can be a language barrier. e.g. tree nuts vs. Lupins (peanut family).