### Godot version

4.0 beta 10

### System information

Ubuntu 22.04.1 LTS

### Issue description

If your node has `'` in its name, autocomplete might still suggest single quotes which results in an error.

![image](https://user-images.githubusercontent.com/85438892/210971332-81c13316-e7de-4d7d-9b08-f5676bf4c598.png)

![image](https://user-images.githubusercontent.com/85438892/210973393-ba999b6f-650c-461e-8d2d-b6a1a21adb76.png)


### Steps to reproduce

1. Add a child and name it `Juan's pancakes`
2. Add a script and type `$'`

### Minimal reproduction project

N/A
String class_name = p_enum_hint.get_slice(".", 0);
		String enum_name = p_enum_hint.get_slice(".", 1);
		if (!ClassDB::class_exists(class_name)) {
			return;
		}
		List<StringName> enum_constants;
		ClassDB::get_enum_constants(class_name, enum_name, &enum_constants);
		for (const StringName &E : enum_constants) {
			String candidate = class_name + "." + E;
			int location = _get_enum_constant_location(class_name, E);
			ScriptLanguage::CodeCompletionOption option(candidate, ScriptLanguage::CODE_COMPLETION_KIND_ENUM, location);
			r_result.insert(option.display, option);
		}
	}
}
static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, const GDScriptCompletionIdentifier &p_base, const StringName &p_method, int p_argidx, bool p_static, HashMap<String, ScriptLanguage::CodeCompletionOption> &r_result, String &r_arghint) {
	Variant base = p_base.value;
	GDScriptParser::DataType base_type = p_base.type;
	const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\"";
	while (base_type.is_set() && !base_type.is_variant()) {
		switch (base_type.kind) {
			case GDScriptParser::DataType::CLASS: {
				if (base_type.class_type->has_member(p_method)) {
					const GDScriptParser::ClassNode::Member &member = base_type.class_type->get_member(p_method);
					if (member.type == GDScriptParser::ClassNode::Member::FUNCTION) {
						r_arghint = _make_arguments_hint(member.function, p_argidx);
						return;
					}
				}
				base_type = base_type.class_type->base_type;