### 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
code_completion_options.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);
			}
			continue;
		}
		/* This code works the same as:
		if (option.display.begins_with(s)) {
			completion_options.push_back(option);
		} else if (option.display.to_lower().begins_with(s.to_lower())) {
			completion_options_casei.push_back(option);
		} else if (s.is_subsequence_of(option.display)) {
			completion_options_subseq.push_back(option);
		} else if (s.is_subsequence_ofn(option.display)) {
			completion_options_subseq_casei.push_back(option);
		}
		But is more performant due to being inlined and looping over the characters only once
		*/
		String display_lower = option.display.to_lower();
		const char32_t *ssq = &string_to_complete[0];
		const char32_t *ssq_lower = &string_to_complete_lower[0];
		const char32_t *tgt = &option.display[0];
		const char32_t *tgt_lower = &display_lower[0];
		const char32_t *sst = &string_to_complete[0];
		const char32_t *sst_lower = &display_lower[0];
		Vector<Pair<int, int>> ssq_matches;
		int ssq_match_start = 0;
		int ssq_match_len = 0;
		Vector<Pair<int, int>> ssq_lower_matches;
		int ssq_lower_match_start = 0;