### Godot version

v4.0.stable.official [92bee43ad]

### System information

Windows 10

### Issue description

This Godot 3 line

```gdscript
assert(r.hash() == {"a":1, "b":2}.hash())
```

was converted to this:

```gdscript
assert(r.hash() == {"a":1) #,"b":2}.hash())
```

For some reason `) #` is added after `1`.

### Steps to reproduce

Just converting Godot 3 project containing the line to Godot 4.

### Minimal reproduction project

N/A
for (SourceLine &source_line : source_lines) {
		if (source_line.is_comment) {
			continue;
		}
		String &line = source_line.line;
		if (uint64_t(line.length()) <= maximum_line_length) {
			// 
			TypedArray<RegExMatch> reg_match = reg_container.joypad_button_index.search_all(line);
			for (int i = 0; i < reg_match.size(); ++i) {
				Ref<RegExMatch> match = reg_match[i];
				PackedStringArray strings = match->get_strings();
				String button_index_entry = strings[0];
				int button_index_value = strings[1].to_int();
				if (button_index_value == 6) { // 
					line = line.replace("InputEventJoypadButton", "InputEventJoypadMotion");
					line = line.replace(button_index_entry, ",\"axis\":4,\"axis_value\":1.0");
				} else if (button_index_value == 7) {
					line = line.replace("InputEventJoypadButton", "InputEventJoypadMotion");
					line = line.replace(button_index_entry, ",\"axis\":5,\"axis_value\":1.0");
				} else if (button_index_value < 22) { // 
					String pressure_and_pressed_properties = strings[2];