Thanks, I will update this now.
What pairs the feature file and the step file? is it simply the reference to any step name of any step file?
Do you mean that any before() hook will run, no matter if the step file is ran by the feature file or not?
In my case I have:
Feature file A -> Step file A (containing the before() )
Feature file B -> Step file B (but this also runs the before() from Step file A)