And with that, the raid has more or less ended--Or at least, the guided part of it. You're free to uh... hang around and beat up a lingering brainwashed pokemon I guess. (...Bully.) Lest, it should probably be assumed that Lance and the teachers will be gathering up stragglers to take them back to the academy where they can attempt to care for them as best they can. Unfortunately for Ellie, Valorie, Lucia and two of Lucia's pokemon the false memories put in their heads will show no indication of going away, regardless of Beheeyem's actions and regardless of whether they realize they're fake.
I get the feeling the academy therapists are going to be very busy, as will the higher staff when they have to explain to the students' parents why their kid is a psyduck. :P