Is it possible to dynamically specify the class name in styles?

I need to pass class name from script to style

<script
    lang="ts"
    setup
>
    const className = ref('some-class')
</script>

<style
    lang="sass"
    module
>
    .#{v-bind(className)}--dynamic
        pointer-events: none
</style>

In this case I get an error:
Error: expected selector.
.v-bind(className)–dynamic ━ error in interpolated output