Despite the word's strong association with Shakespearean comedy (via the commedia dell'arte character Pantalone), William Shakespeare never used the word "pantaloons" in any of his plays or poems.
He references the character type in The Taming of the Shrew (Induction): "A lord... / And in his house a player... / That plays the pantaloon." But the noun is "pantaloon" (the character), not "pantaloons" (the trousers). The plural garment term postdates him.
This is a classic example of retroactive lexical attribution—a word feels "Shakespearean" because of its theatrical roots, but the Bard himself never penned it.