Did you open the custom module with Joomla editors like Tinymce or JCE ? Tinymce remove the span tags and i tags that used to present the icons. Please switch the editor to codemirror or none before editing. Or you can add the rule for tinymce like this
71+ more Joomla templates updated to Joomla 5.0.3Download