uhm idk why this function isnt running

i have a function, that should run every tick as an entity

the function uses macros because if an execute if function, but it doesnt seem like its working

tick.mcfunction

execute as @e[tag=redacted] run function redacted:player_check with entity @s

player_check.mcfunction

function redacted:log {text:"checker tick"}
$execute if entity @p[distance=..2, dy=$(dy)] run function redacted:log {text:"Player!!!"}
Continue to help post