Use settings field inside html field

I am experimenting with creating custom modules and trying something maybe very complicated.
I want to have text input fields where I can just fill in text and use a code html field where I want to use these fields. So for example:
Text field: “Hello World!”
HTML field: < h1 > settings->text_field < / h1 >

I know I could do this easily inside the frontend.php, but I want one module with wich I can create anything I want inside of the module itself. Does ayone know of any way for me to do this, or is this impossible with how Beaver Builder modules work.

Thanks in advance.