He can just spread his bugs out so it would be more difficult for Shikamaru to trap them all individually. There was a reddit post about this matchup and some user said "Shadow possession was, according to the databooks, invented to capture deer. It 100% works on animals and I think that includes bugs."
It’s like they don’t know the difference between a large mammal that can easily be spotted and tiny creatures that are harder to track