Hiding global script class error while class is unique

Godot Version

4.2.2

Question

I’m implementing a state machine for my game.
I’ve created a state.gd file and each state in my different state machines (for player, enemies…) have their state inheriting from state.gd.
i.e. class_name PlayerIdleState extends State
Now, when I run the game, I get an error saying I’m hiding a global script class and I verified this class is not duplicated anywhere.
I tried deleting the import folder but same issue.
Any idea what I’m doing wrong ?
Thanks,

I must add that since I added a second character with its state machine, a whole lot of weird behavior occurred like constantly messing up with state-s associated script.
Mainly, godot keeps changing script reference from one idle state with the other idle script…