He should have talked to his lawyer before posting on X.
Music licensing was never an issue for Olympic figure skaters until recently. Music with vocals was banned by the International Skating Union until 2014, when the rules were loosened, and Olympic skaters were allowed to use more popular songs. 2022 Olympic champion Nathan Chen used Bennie and the Jets and Rocket Man in his free program. But with that comes unwanted controversy between athletes and artists.
Spanish skater Tomàs-Llorenç Guarino Sabaté is set to compete in a Minion-themed short program Tuesday night. He secured the rights to his music, which features audio from the movie Minions, right before the games, likely in part due to the virality of his routine. The copyright holders probably saw the bad press they were getting from initially denying his request and made magic happen to ensure he could promote the Minions IP on an international stage viewed by millions.

Source: @Wakawarrior1 and @barstoolsports