### 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
line = line.replace("OS.GetWindowSafeArea()", "DisplayServer.ScreenGetUsableRect()");
	// 
	if (line.contains("GetTree().SetInputAsHandled()")) {
		line = line.replace("GetTree().SetInputAsHandled()", "GetViewport().SetInputAsHandled()");
	}
	// 
	// 
	if (line.contains("_UnhandledKeyInput(InputEventKey @event)")) {
		line = line.replace("_UnhandledKeyInput(InputEventKey @event)", "_UnhandledKeyInput(InputEvent @event)");
	}
	// 
	if (line.contains("Connect(")) {
		int start = line.find("Connect(");
		// 
		if (start == 0 || line.get(start - 1) != 's') {
			int end = get_end_parenthesis(line.substr(start)) + 1;
			if (end > -1) {
				Vector<String> parts = parse_arguments(line.substr(start, end));