"... i have to stand way back to get action by the basket."
Where you shoot from is more important, by far, than what gear you have or use. On the floor with mobility is best. On the floor, fixed, is second and elsewhere or from the bleachers is worst. Your settings need to be tested. How light is the gym. Where you shoot from will have different settings. Only general rules are possible without knowing these things.
The very few times I was asked to do sports, I always got there early. Very early. I tried different settings. I usually had a willing subject to stand in, too.
" I have a canon 7d mark ii using a 70-200 2.8"
You need to add the EF 24-70mm f2.8 to your BB bag. Another good wider lens is the EF-S 17-55mm f/2.8 IS USM Lens.
09/26/2023: New firmware updates are available.
08/18/2023: Canon EOS R5 C training series is released.
07/31/2023: New firmware updates are available.
05/31/2023: New firmware updates are available.
05/18/2023: New firmware updates are available.
03/30/2023: New firmware updates are available.