Markup was deprecated from Flask in Version 2.3.0 (see here).
The implementation has moved to the markupsafe
package and can be used in an identical way:
from markupsafe import Markup
url_label = Markup("<a href='YOUR_URL'>Main Website</a>")
url_main = _StringField(label=url_label)