Hello . This is Scott. Your starter solenoid has a switch inside of it that powers the starter only after the drive gear is engaged in the flex plate / ring gear .
The solenoid switch has worn out and the repair is to replace the starter.
I hope this is helpful, If you need more info please ask, Thanks Scott.