How To Get An Ender Dragon To Face Where Your Facing?

haven't played with this yet much but I'm having trouble with getting the ender dragon to move in the direction im facing

heres my code

execute as @e[type=player] at @s positioned ^ ^ ^1 run tp @e[type=armor_stand,tag=facing,limit=1,sort=nearest] ^ ^ ^-1

# Make the ender dragon face the same direction as the player and move it forward slowly without flipping
execute as @e[type=player] at @s run tp @e[type=ender_dragon,tag=rideable_dragon,limit=1,sort=nearest] ~ ~ ~ ~ ~0
execute as @e[type=ender_dragon,tag=rideable_dragon] at @s run tp @s ^ ^ ^0.1 facing entity @s feet
Continue to help post