Stopping collision when changing scenes

	Global.player.position = Vector2(576, 524)
	get_parent().remove_child(Global.player)
	get_parent().remove_child(Global.hud)
	get_parent().queue_free()
	var scene = preload("res://combat.tscn").instantiate()
	get_tree().root.add_child(scene)
	scene.add_child(Global.player)
	scene.add_child(Global.hud)

here is the code I am using to change scenes, the problem is that there is an enemy that is instantiated when the combat scene is ready and the enemy shares the same position as the player when switching scenes (before setting player position to Vector2(576, 524)). Both entities are characterbody2Ds and both use move and collide. The enemy sometimes ends up displaced due to a collision with the player which I found out through checking colliders in the enemy code. How do I make it so that they don’t collide when switching scenes?

(also I’m curious about why the player doesn’t detect the collision in the player code, I’m looping through get_slide_collision_count() to detect collision)