To change the Text Cursor Indicator color in Windows 11/10, do the following:
Open the Settings app.
Go to Ease of access > Text Cursor.
On the right, see the Use text cursor indicator section.
Click on the desired color under Suggested text cursor indicator color.