Swimming is the first choice and has many benefits. But you'd better go to the swimming pool. At the same time, it will also be limited by some venues and time.
Besides swimming, table tennis is also good.
Also, you can play football, but be careful not to play too much basketball. Although the amount of exercise of these two kinds of sports is very large, the characteristics of sports are very different, and the probability of playing basketball for heatstroke will be much greater.
The type of exercise is not the most important, but the amount of exercise is fundamental.