Mob Health

pretty basic, but i've been trying to summon a wolf with extra health, but it just doesn't seem to work I also tried to /attribute it separately then heal it with instant health and it also seems to not work.

Here's the command summon wolf ~ ~ ~ {Tags:[regular,tagged,"starwolf","needsheal"],CustomName:'[{text:"Star Wolf",color:"#d30db9"}]',Health:64f,attributes:[{id:"minecraft:max_health",base:64}]}

Here's the other alternative i tried which also doesn't work for whatever reason

summon wolf ~ ~ ~ {Tags:[regular,tagged,"starwolf","needsheal"],CustomName:'[{text:"Star Wolf",color:"#d30db9"}]'} execute as @e[type=wolf,tag=starwolf,tag=needsheal] run attribute @s minecraft:max_health base set 64 effect give @e[type=wolf,tag=starwolf,tag=needsheal] minecraft:instant_health 1 9 true tag @e[type=wolf,tag=starwolf] remove needsheal

I also tried to make the attribute/health function a little bit delayed, but that still doesn't work. Can anyone help me out?

Continue to help post