Smell matters to attraction. That is a different claim.
Pheromones are well established in insects and in many mammals, and the compounds are known by name. In humans, no molecule has ever met the standard: a specific compound, produced by everyone, that reliably produces a specific response. The four candidates sold commercially for decades were tested properly in 2017 and had no effect.
What does hold up is less tidy and more interesting. In repeated studies people rate the scent of others as more pleasant when their immune-system genes differ from their own — a preference that would, on average, produce offspring with broader immunity.