It's likely easier to solve this on the networking end. Our district has multiple wifi segments (student, staff, guest), but the policies we have in place allow intercommunication between the student and staff segments, so a student on the student network and a teacher on the staff network can both be in the same Apple Classroom.
To answer about forcing students into a specific wifi: Assuming these are iPads, you'd need to look for a third-party solution for something like that, because you can't even get the location of an iPad that isn't in Lost Mode in Jamf, let alone force a particular wifi based on that location.
I am not sure this exists in Jamf School, but, in Jamf Pro you could do something with LDAP EAs, e.g., or Network Segments, or, have an EA for Room Number & use that as the scope for a separate Wi-Fi Configuration Profile for each room, i.e., effectively hard-coding the Wi-Fi profile for each room based on an attribute each device in the room has pertaining to it's location. The only other option would be very carefully tuning the radios in the APs per this article. It might not ever be perfect but in an ideal situation this kind of mapping would be done anyway.
This sounds like a disaster waiting to happen with that many SSID. Devices would be jumping around SSID like jumping beans. If you are trying to solve an issue with students showing up in an Apple Classroom when they are not in the room, this is a SIS issue with your classroom creations. If a student moves around, then I would solve this problem by creating additional classes or periods in your SIS. That would be my two cents.