Raycast hitting collider even though its set to trigger?

I have enemy NPCs with large radius sphere colliders set to is trigger to represent their sight and sound. But the raycast from my shooting script hits these spheres and even causes damage to the enemies without hitting their bone colliders. I figured raycasts would ignore colliders set to is trigger. How do I tell the raycast to ignore the sphere colliders but still hit the bone colliders of the enemy?

You can set raycast ignore trigger options in Edit > Project Settings > Physics. There is a checkbox that goes “Raycasts Hit Triggers”.