This blog post teaches you how to apply multiple color styles to a single text in Jetpack Compose using buildAnnotatedString and SpanStyle.
This blog post is on how to make text selectable and copyable in Jetpack Compose. It has examples to change selection color and handle color.