How can I customize the register text in a Shopify theme using liquid?

Hi, I am new to shopify. I am creating a new theme, I need this:

{{ '--register--'  | customer_register_link | replace: '--register--', 'register' }}

The reason I am using replace here because I need style inside each tag, Here’s the post.

Anyway, the value “register” is hard-coded, and I want the user to be able to set the value. In such case, I would like to have this instead:

{{ '--register--'  | customer_register_link | replace: '--register--', '{{ settings.register_text }}' }}

How might I achieve this?