As a founding member of the Avengers, the Scientist Supreme of Earth generally plays at a higher tier than Spider-Man. His defences are sufficient to keep him going until be can tag Spidey with BFR.
Oh, and that’s only Pym using his giant size and plane shifting abilities, a minuscule subset of the strategies at his disposal. His battlefield manipulation abilities are very impressive, given how he can change the size of objects as well as people (replicating Doom’s ‘instant boulders’ trick would be trivial). He could also grow Spider-Man to the size of a planet and let him collapse on his own weight if he was feeling vindictive. And then there’s his other tech, like his insect control, and his wing and bioelectricity implants.
That said, I don’t think this would be a particularly easy fight for Ant-Man, as Spider-Man’s Spider Sense and supersonic speed make him very difficult to actually target and hit, but in the end it doesn’t matter much because there’s not really anything the Webhead can do to end the fight.