### Godot version

4.0.2.stable

### System information

Ubuntu 22.10

### Issue description

This happens when converting a godot3 project to a godot4 project.
Godot3 source
```gdscript
extends Node2D

export(int) var integer := 2
export(Resource) var resource: Resource = null
```

Result
```gdscript
extends Node2D

@export var integer: int := 2
@export var resource: Resource: Resource = null
```

Expected result
```gdscript
extends Node2D

@export var integer := 2
@export var resource: Resource = null
```

If someone can point to where in the code this might be fixed maybe I can fix it myself, sounds like a good first issue.


### Steps to reproduce

Open the given project (or any project really) and convert it to a godot 4 project

### Minimal reproduction project

[Conversion Tool Typing Problem.zip](https://github.com/godotengine/godot/files/11185334/Conversion.Tool.Typing.Problem.zip)

if (line.contains("window_minimized")) {
		// 
		line = reg_container.reg_os_set_minimized.sub(line, "get_window().mode = Window.MODE_MINIMIZED if ($1) else Window.MODE_WINDOWED", true);
		// 
		line = reg_container.reg_os_assign_minimized.sub(line, "get_window().mode = Window.MODE_MINIMIZED if ($1) else Window.MODE_WINDOWED", true);
		// 
		line = reg_container.reg_os_is_minimized.sub(line, "(get_window().mode == Window.MODE_MINIMIZED)", true);
	}
	if (line.contains("set_use_vsync")) {
		// 
		line = reg_container.reg_os_set_vsync.sub(line, "DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_ENABLED if ($1) else DisplayServer.VSYNC_DISABLED)", true);
	}
	if (line.contains("vsync_enabled")) {
		// 
		line = reg_container.reg_os_assign_vsync.sub(line, "DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_ENABLED if ($1) else DisplayServer.VSYNC_DISABLED)", true);
		// 
		line = reg_container.reg_os_is_vsync.sub(line, "(DisplayServer.window_get_vsync_mode() != DisplayServer.VSYNC_DISABLED)", true);
	}
	if (line.contains("OS.screen_orientation")) { // 
		// 
		line = reg_container.reg_os_assign_screen_orient.sub(line, "$1DisplayServer.screen_set_orientation($2)", true); // 
		line = line.replace("OS.screen_orientation", "DisplayServer.screen_get_orientation()"); // 
	}
	if (line.contains("_window_always_on_top")) {
		// 
		line = reg_container.reg_os_set_always_on_top.sub(line, "get_window().always_on_top = ($1)", true);
		// 
		line = reg_container.reg_os_is_always_on_top.sub(line, "get_window().always_on_top", true);
	}
	if (line.contains("et_borderless_window")) {