### 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 (RegEx *regex : color_regexes) {
			memdelete(regex);
		}
		for (unsigned int i = 0; i < class_tscn_regexes.size(); i++) {
			memdelete(class_tscn_regexes[i]);
			memdelete(class_gd_regexes[i]);
			memdelete(class_shader_regexes[i]);
			memdelete(class_regexes[i]);
		}
		for (RegEx *regex : enum_regexes) {
			memdelete(regex);
		}
		for (RegEx *regex : gdscript_function_regexes) {
			memdelete(regex);
		}
		for (RegEx *regex : project_settings_regexes) {
			memdelete(regex);
		}
		for (RegEx *regex : project_godot_regexes) {
			memdelete(regex);
		}