Minecraft wiki entry for experience, associated text: Specifies the target of the command. In Bedrock Edition, 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.