There are low sugar sports drinks. Most of the electrolytes they’re advertising is just salt. Your body needs salt to function. You lose salt when you sweat.
My doctor told me I come literally just put some table salt in water and it would do just as well as any sports drink, sugar or no.
I work in a physical environment and they hand out electrolyte packets and Gatorade like candy when it gets hot.
Potassium is also an important electrolyte for heart health, so have a banana with your salt water, if you can. source: https://www.cdc.gov/salt/sodium-potassium-health/index.html