I would argue that this is not the most direct way of doing this calculation, nor is it necessarily the desired output.
The relative SASA is more directly obtained from the trajectory by doing a second calculation in which the residue of interest is both the group chosen for the surface generation as well as output; that then reflects the theoretical maximum value that can be ascribed to that residue in the configuration it is in. While it is somewhat artificial, generating X-Gly-X (1) cannot be done by GROMACS and (2) does not correspond to the actual exposure of the residue in the tertiary structure of the protein.
Depends what the user wants, of course, and what they want to make comparisons with.
Didn’t follow the pymol link, but just did and that has another method you can use to determine MaxASA. For the surface group select the residue of interest plus the two residues beside it, then select the residue of interest for output.