### Godot version

4.2.dev1

### System information

Manjaro Linux (DE: Cinnamon v5.8.4) 64 bits

### Issue description

The title already explains it. Take a look at the steps to reproduce below.

### Steps to reproduce

In a GDScript `_ready()` function write this:
```print_rich("[color=red]Red line\n2nd red line[/color]")```

the second line is not red and the output is as follow:
![Capture d’écran du 2023-07-29 05-50-16](https://github.com/godotengine/godot/assets/102065761/554038c6-d128-40c9-8c88-237b44b35b12)

I tested all the the possible BBCodes for the print_rich() method (as stated in the documentation), and of course they all failed.

The RichTextLabel in my projects works as expected.

### Minimal reproduction project

N/A
void _clear_request();
	void _copy_request();
	static void _undo_redo_cbk(void *p_self, const String &p_name);
	void _rebuild_log();
	void _add_log_line(LogMessage &p_message, bool p_replace_previous = false);
	void _set_filter_active(bool p_active, MessageType p_message_type);
	void _set_search_visible(bool p_visible);
	void _search_changed(const String &p_text);
	void _process_message(const String &p_msg, MessageType p_type);
	void _reset_message_counts();
	void _set_collapse(bool p_collapse);
	void _start_state_save_timer();
	void _save_state();
	void _load_state();
	void _update_theme();
protected:
	void _notification(int p_what);
public:
	void add_message(const String &p_msg, MessageType p_type = MSG_TYPE_STD);
	void set_tool_button(Button *p_tool_button);
	void register_undo_redo(UndoRedo *p_undo_redo);
	void deinit();
	void clear();
	EditorLog();
	~EditorLog();
};
VARIANT_ENUM_CAST(EditorLog::MessageType);
#endif