You can do it with pure CSS:
1. To put * after the text box:
Put *
in the Field appearance\explanation text
and in HTML envelope\content before you can add
<style>
.explanation-text
{
display:inline-flex !important;
}
</style>

2. If you want to put * next to the caption it is even easier:
assuming you field called CustomID in HTML envelope\content before you can add:
<style>
label[id*='CustomID']::after {content: "*"; color:red;}
</style>
