### Godot version

v4.0.stable.official [92bee43ad]

### System information

Windows 10

### Issue description

In my project i have a function name called "get_or_connect" which also had 3 arguments, where the Conversion then put the last 2 args inside of a callable, bricking the method.

Here it seems that it has a regex like "connect(" and if that would be expanded to ".connect(" this kinds of false replacements could be prevented.

### Steps to reproduce

Open the MRP and open it with godot 4 and convert it to godot 4.

Now there should be a lot of renames in the one Script "Main.gd" which are incorrect. You can check the script before the conversion to check or see in the comments

### Minimal reproduction project

[Reproduction connect replacement.zip](https://github.com/godotengine/godot/files/10930057/Reproduction.connect.replacement.zip)

// 
		line = reg_container.reg_os_assign_minimized.sub(line, "get_window().mode = Window.MODE_MINIMIZED if ($1) else Window.MODE_WINDOWED", true);
		// 
		line = reg_container.reg_os_is_minimized.sub(line, "(get_window().mode == Window.MODE_MINIMIZED)", true);
	}
	if (line.contains("set_use_vsync")) {
		// 
		line = reg_container.reg_os_set_vsync.sub(line, "DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_ENABLED if ($1) else DisplayServer.VSYNC_DISABLED)", true);
	}
	if (line.contains("vsync_enabled")) {
		// 
		line = reg_container.reg_os_assign_vsync.sub(line, "DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_ENABLED if ($1) else DisplayServer.VSYNC_DISABLED)", true);
		// 
		line = reg_container.reg_os_is_vsync.sub(line, "(DisplayServer.window_get_vsync_mode() != DisplayServer.VSYNC_DISABLED)", true);
	}
	if (line.contains("OS.screen_orientation")) { // 
		// 
		line = reg_container.reg_os_assign_screen_orient.sub(line, "$1DisplayServer.screen_set_orientation($2)", true); // 
		line = line.replace("OS.screen_orientation", "DisplayServer.screen_get_orientation()"); // 
	}
	if (line.contains("_window_always_on_top")) {
		// 
		line = reg_container.reg_os_set_always_on_top.sub(line, "get_window().always_on_top = ($1)", true);
		// 
		line = reg_container.reg_os_is_always_on_top.sub(line, "get_window().always_on_top", true);
	}
	if (line.contains("et_borderless_window")) {
		// 
		line = reg_container.reg_os_set_borderless.sub(line, "get_window().borderless = ($1)", true);
		//