Text hyperlink hashtags(#) and mentions(@) in Jetpack Compose?

```kotlin

@Composable
fun HashtagsAndMentions() {

    val colorScheme = MaterialTheme.colorScheme
    val primaryStyle = SpanStyle(color = colorScheme.primary)
    val textStyle = SpanStyle(color = colorScheme.onBackground)

    val annotatedString = buildAnnotatedString {

        withStyle(style = textStyle) {
            append("I am ")
        }

        pushStringAnnotation(tag = "hashtags", annotation = "hashtags")
        withStyle(style = primaryStyle) {
            append(text = "#hashtags")
        }
        pop()

        withStyle(style = textStyle) {
            append(" and ")
        }

        pushStringAnnotation(tag = "mentions", annotation = "mentions")
        withStyle(style = primaryStyle) {
            append(text = "@mentions")
        }
        pop()

        withStyle(style = textStyle) {
            append(" in Jetpack Compose.")
        }
    }

    ClickableText(
        onClick = {
            annotatedString.getStringAnnotations("hashtags", it, it).firstOrNull()?.let {

            }
            annotatedString.getStringAnnotations("mentions", it, it).firstOrNull()?.let {

            }
        },
        text = annotatedString,
        style = MaterialTheme.typography.bodyLarge,
        modifier = Modifier.padding(16.dp))
}

```

```kotlin

@Preview
@Composable
fun PreviewTest() {
    HashtagsAndMentions()
}

```

The above are fixed tags, how to dynamically identify and link?

ideas String to array

```kotlin

val string = "I am #hashtags and @mentions in Jetpack Compose."

val array = arrayOf("I am ", "#hashtags", " and ", "@mentions", "in Jetpack Compose.")

```