execute as @e[distance=..5,type=!#items_and_non_mobs] run damage @s 3 thorns by @n[type=silverfish,tag=subterranean_silverfish]
execute as @e[distance=..5,type=!#items_and_non_mobs] run effect give @s infested 15 0
execute at @s run particle minecraft:crit ~ ~1 ~ 2 1 2 0 100