Hey,
as far as I know swarms can normally only attack the turn after they surround the victims, at least this was the case in my previous run.
Now it seems they attack once they reach you, I think this is a bug?
Happend with rats swarms, locust swarms and vescavor swarms.
If it works as intended please ignore my post.