Minecraft wiki entry for spawnpoint, associated text: Specifies the player whose spawn point should be set. If not specified, defaults to the command's executor.
Must be a player name, a target selector or a UUID‌[Java Edition only]. And the target selector must be of player type.