### Godot version

4.0 beta 10

### System information

Windows 11

### Issue description

On the text editor when using autocomplete on function arguments that receive Input Map names after autocompleting the function name, the string autocompleted appears with an extra " at the end.
This doesnt happen if you write " and then accept the Input name in the dropdown

### Steps to reproduce

- On the script editor
- Start writing `Input.get_vector` but when the dropdown appears with the autocomplete suggestion for `Input.get_vector` press enter to accept it, then press enter again to accept the Input map suggestion
- The autocompleted input name should have an extra "

### Minimal reproduction project

N/A
option.matches.append_array(ssq_matches);
				completion_options_subseq.push_back(option);
			}
			if (font.is_valid()) {
				max_width = MAX(max_width, font->get_string_size(option.display, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).width + offset);
			}
		} else if (!*ssq_lower) { 
			option.matches.clear();
			if (sst_lower_start == 0) { 
				option.matches.push_back(Pair<int, int>(sst_lower_start, string_to_complete.length()));
				completion_options_casei.push_back(option);
			} else if (sst_lower_start > 0) { 
				option.matches.push_back(Pair<int, int>(sst_lower_start, string_to_complete.length()));
				completion_options_substr_casei.push_back(option);
			} else {
				if (ssq_lower_match_len > 0) {
					ssq_lower_matches.push_back(Pair<int, int>(ssq_lower_match_start, ssq_lower_match_len));
				}
				option.matches.append_array(ssq_lower_matches);
				completion_options_subseq_casei.push_back(option);
			}
			if (font.is_valid()) {
				max_width = MAX(max_width, font->get_string_size(option.display, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).width + offset);
			}
		}
	}
	code_completion_options.append_array(completion_options_casei);
	code_completion_options.append_array(completion_options_subseq);
	code_completion_options.append_array(completion_options_subseq_casei);