Former men’s tennis world number one Roger Federer, plagued by recurring knee problems for the last two years, will play singles at the ATP Basel indoor tournament in October, organisers said.

Federer, who hasn’t played competitively since losing last July in the quarter-finals at Wimbledon to Pole Hubert Hurkacz, replied to the organisers’ Instagram announcement with the message: “Looking forward to playing back home.”

The tournament, like the 10-time winner, will be making its return after an enforced break having not taken place for the past two years due to the Covid-19 pandemic.

“After a two-year break due to the pandemic, the Swiss Indoors Basel will return to the ATP Tour in the fall of 2022,” organisers said in a statement.

“10-time singles champion and hometown hero Roger Federer has announced his comeback to the stadium at St. Jakobshalle,” adding that “the worldwide expected to be tremendous”.

The statement added: “The Swiss all-time great has confirmed his initial agenda will include the Laver Cup in London followed by the Swiss Indoors in Basel.”

Federer, who turns 41 in August, is also due to play in the three-day team event Laver Cup with long-time rival Rafael Nadal in London in September.

The duo teamed up to play doubles at the inaugural event in 2017.

Federer withdrew from the Olympics last year and underwent his third bout of knee surgery in 18 months, to “suture” his right internal meniscus and “treat (his) cartilage”.

Federer played just 13 matches in 2021, having played only six times in 2020.

Federer has 20 career Grand Slam titles, tied for second with Novak Djokovic and one behind recordholder Rafael Nadal, who won the season-opening Australian Open.

Federer’s most recent Grand Slam title came at the 2018 Australian Open.