These commands don't do what they should:
/execute at @e if entity @p[distance=...2] run say player found
/execute at @p if entity @e[type=armor_stand,distance=...2] run say armor stand found
/say @e[distance=...5]
These commands don't do what they should:
/execute at @e if entity @p[distance=...2] run say player found
/execute at @p if entity @e[type=armor_stand,distance=...2] run say armor stand found
/say @e[distance=...5]
Ranges need two dots, not three.