Can't change sprite texture

Godot Version

v4.2.2-stable

Question

Why doesn’t this work? I tried everything.

extends RigidBody2D
class_name Bird

@onready var sprite_2d = $Sprite2D

const RETtext = preload("res://images/ret.svg")
const CHECKtext = preload("res://images/chak.svg")
const BOMPtext = preload("res://images/bomp.svg")

enum BirdTypes {RET,CHECK,BOMP}

@export var BirdType:BirdTypes = BirdTypes.RET:
	get:
		return BirdType
	set(value):
		BirdType = value
		if BirdType == BirdTypes.RET:
			sprite_2d.texture = RETtext
		elif BirdType == BirdTypes.CHECK:
			sprite_2d.texture = CHECKtext
		else:
			sprite_2d.texture = BOMPtext



# Called when the node enters the scene tree for the first time.
func _ready():
	pass
	



# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass

What doesn’t work? Could you explain what you expect to happen and what really happens?

Just testing this and it seems the source of the problem is the .svg file.
If you change to .png it works as you would expect.
I don’t know why .svg isn’t playing nice.