### 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)

String converter_text = "; Project was converted by built-in tool to Godot 4.0";
		ERR_FAIL_COND_V_MSG(!FileAccess::exists("project.godot"), false, "Current working directory doesn't contain a \"project.godot\" file for a Godot 3 project.");
		Error err = OK;
		String project_godot_content = FileAccess::get_file_as_string("project.godot", &err);
		ERR_FAIL_COND_V_MSG(err != OK, false, "Unable to read \"project.godot\".");
		ERR_FAIL_COND_V_MSG(project_godot_content.contains(converter_text), false, "Project was already converted with this tool.");
		Ref<FileAccess> file = FileAccess::open("project.godot", FileAccess::WRITE);
		ERR_FAIL_COND_V_MSG(file.is_null(), false, "Unable to open \"project.godot\".");
		file->store_string(converter_text + "\n" + project_godot_content);
	}
	Vector<String> collected_files = check_for_files();
	uint32_t converted_files = 0;
	
	for (int i = 0; i < collected_files.size(); i++) {
		String file_name = collected_files[i];
		Vector<SourceLine> source_lines;
		uint32_t ignored_lines = 0;
		{
			Ref<FileAccess> file = FileAccess::open(file_name, FileAccess::READ);
			ERR_CONTINUE_MSG(file.is_null(), vformat("Unable to read content of \"%s\".", file_name));
			while (!file->eof_reached()) {
				String line = file->get_line();
				SourceLine source_line;
				source_line.line = line;
				source_line.is_comment = reg_container.gdscript_comment.search_all(line).size() > 0 || reg_container.csharp_comment.search_all(line).size() > 0;
				source_lines.append(source_line);
			}
		}
		String file_content_before = collect_string_from_vector(source_lines);
		uint64_t hash_before = file_content_before.hash();