Cute problem!
First, the global part. Let $O$ be the centroid of $S$. Since reflection across the perpendicular bisector of $AB$ fixes $S$, it must also fix $O$, so $AO=BO$ and $O$ is the circumcenter of $S$.
We now split the problem into two cases:
Case 1: $S$ is coplanar.
Let $\Omega$ be the circumcircle of $S$. Assume for the sake of contradiction that there are points $A,B,C,D\in S$ in that order around $\Omega$ with
$A\ne D$,
$A$ and $B$ consecutive,
$C$ and $D$ consecutive, and
$\overarc{\ensuremath{ADB}}<\overarc{\ensuremath{CAD}}$.
[asy][asy]
draw(unitcircle);
pair A=dir(162),B=dir(234),C=dir(354),D=dir(42);
pair Z=(5/4)*sqrt(A*D), Cp=A*D/C;
draw(-Z--Z,blue+dashed+(1/2)*bp);
draw(C--Cp,blue+(1/2)*bp,Arrow,Margins);
dot("$A$",A,A); dot("$B$",B,B); dot("$C$",C,C); dot("$D$",D,D);
dot("$C'$",Cp,Cp,blue);
[/asy][/asy]
Then, reflecting $C$ over the perpendicular bisector of $AD$ gives a point between $A$ and $B$ in $S$, a contradiction.
Therefore, the arcs between consecutive points in $S$ must all be congruent, so $S$ consists of the vertices of a regular polygon, as desired.
$\square$
Case 2: $S$ is not coplanar.
Let $\Omega$ be the circumsphere of $S$. Take the convex polyhedron formed by $S$, i.e. the convex hull of $S$. Let $P\in S$ and let the neighbors of $P$ on the convex hull be $A_1,A_2,\ldots,A_n$ in that order for some $n\ge 3$.
By Case 1, the faces of the convex hull are regular polygons, so $$PA_1=PA_2=\ldots=PA_n.$$Thus, $A_1,A_2,\ldots,A_n$ lie on the circle formed by the intersection of $\Omega$ and the sphere centered at $P$ containing $A_1,A_2,\ldots,A_n$. By Case 1, they then must form a regular polygon. Therefore, $$\angle A_1PA_2=\angle A_2PA_3=\ldots=\angle A_nPA_1,$$so the faces containing these angles have the same number of sides and are congruent regular polygons. It follows that the convex hull of $S$ is a platonic solid.
The cube, dodecahedron, and icosahedron do not work because they are not preserved when reflecting across the perpendicular bisector of a space diagonal. Thus, $S$ consists of the vertices of either a regular tetrahedron or a regular octahedron, as desired.
$\square$