For changing the cursor color @mykola-tychyna answer did not work for me, but using DrawableCompat.setTint does:
textView.textCursorDrawable?.let{ DrawableCompat.setTint(it, colorInt) }