Give the group a name. E.g.:
squad1 = group this
Put this code in the initialization field of the group's leader.
Then, unassign them from the helicopter. E.g.:
"unassignVehicle _x" forEach units squad1
Put this code in the script (or trigger or waypoint) that ejects the group.
Good luck!