### 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
if (p_info.usage & (PROPERTY_USAGE_CLASS_IS_ENUM | PROPERTY_USAGE_CLASS_IS_BITFIELD)) {
		String enum_name = p_info.class_name;
		if (!enum_name.contains(".")) {
			return enum_name;
		}
		return enum_name.get_slice(".", 1);
	}
	String n = p_info.name;
	int idx = n.find(":");
	if (idx != -1) {
		return n.substr(idx + 1, n.length());
	}
	if (p_info.type == Variant::OBJECT) {
		if (p_info.hint == PROPERTY_HINT_RESOURCE_TYPE) {
			return p_info.hint_string;
		} else {
			return p_info.class_name.operator String();
		}
	}
	if (p_info.type == Variant::NIL) {
		if (p_is_arg || (p_info.usage & PROPERTY_USAGE_NIL_IS_VARIANT)) {
			return "Variant";
		} else {
			return "void";
		}
	}
	return Variant::get_type_name(p_info.type);
}
static String _make_arguments_hint(const MethodInfo &p_info, int p_arg_idx, bool p_is_annotation = false) {