Okay, thank you for letting me know.
I tested all the mobs including bosses, and I just wanted to say I'm sorry I accidentally mistaken hoglins for something else, but I got all mobs that are affected by the bug, piglin, piglin brute, goat, salmon, pufferfish, tropical fish, cod, and pandas.
I tested it for hoglins and the mob family thing didn't affect them. I used a command block to kill @e[family=mob] and it worked for cows and chickens but it didn't seem to affect the hoglin. I'm gonna spawn all the mobs and run a test to see what mobs are affect by this bug. I'll let you know, thank you for your help.
I am unable to provide screenshots but I provided a new detailed explanation to the problem in my updated bug report.