The code didn’t work because you turned off collision on the Actor, not the actual static mesh component.
Actor → Get mesh (flash light) → Set collision enabled (no collision).
Technically should do this directly in the actor before spawn. Default no collision.
If you need it on for other things then you should create a custom collision for the capsule component. Then on the flashlight collision just ignore the capsules collision.