Changing the background color of st.radio options

Hi everyone!

Is it possible to change the text color (or background) of st.radio options and make it unique on the fly?
Like we have 5 (the number is variable in the app actually) options and 5 distinct colors (red, blue, green, yellow, purple for example) will be chosen for formatting.

I tried to implement some tricks (src1, src2), but didn’t have any success.

Will appreciate any help, thank you!