AnimationTree animation_started/animation_finished not firing?

Godot Version

4.2.2

Question

I have an AnimationTree with a script attached to it. Within the script I have the following two signal handling functions:

func _on_animation_started(anim_name: StringName) → void:
print("Animation started ", anim_name)

func _on_animation_finished(anim_name: StringName) → void:
print("Animation finished ", anim_name)

They have the green arrow next to them for being properly hooked up. I am playing a lot of non-looping animations through this animation tree, but the two signals never get fired. Am I doing something wrong, or could this be a bug?

UPDATE: One of my animations randomly fires both signals. But I have around 10 animations, and all the other ones fire nothing.