### Godot version

4.1.rc.custom_build. c83f912bc

### System information

Ubuntu 22.04 CI

### Issue description

When executing
```
extends Node
func _process(delta):

	var temp_variable35241 = RichTextLabel.new()
	add_child(temp_variable35241)
	temp_variable35241.set_fit_content(true)
	temp_variable35241.parse_bbcode("3188932498")
	temp_variable35241.queue_free()
```
this code freeze project in CI for at least 60 seconds

### Steps to reproduce

Above

### Minimal reproduction project

N/A
for (int i = 0; i < subtag.size(); i++) {
				Vector<String> subtag_a = subtag[i].split("=");
				_normalize_subtags(subtag_a);
				if (subtag_a.size() == 2) {
					if (subtag_a[0] == "justification_flags" || subtag_a[0] == "jst") {
						Vector<String> subtag_b = subtag_a[1].split(",");
						for (const String &E : subtag_b) {
							if (E == "kashida" || E == "k") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_KASHIDA);
							} else if (E == "word" || E == "w") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_WORD_BOUND);
							} else if (E == "trim" || E == "tr") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_TRIM_EDGE_SPACES);
							} else if (E == "after_last_tab" || E == "lt") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_AFTER_LAST_TAB);
							} else if (E == "skip_last" || E == "sl") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_SKIP_LAST_LINE);
							} else if (E == "skip_last_with_chars" || E == "sv") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_SKIP_LAST_LINE_WITH_VISIBLE_CHARS);
							} else if (E == "do_not_skip_singe" || E == "ns") {
								jst_flags.set_flag(TextServer::JUSTIFICATION_DO_NOT_SKIP_SINGLE_LINE);
							}
						}
					} else if (subtag_a[0] == "tab_stops") {
						Vector<String> splitters;
						splitters.push_back(",");
						splitters.push_back(";");
						tab_stops = subtag_a[1].split_floats_mk(splitters);
					} else if (subtag_a[0] == "align") {
						if (subtag_a[1] == "l" || subtag_a[1] == "left") {