The 31-year-old, who reached the final at Wimbledon in 2022, failed a doping test during an ATP event in Mallorca on June 22.