There are shoes that are suitable for squats and deadlifts. Running shoes are definitely not.
Barefoot is always better than with running shoes.
The problem is the soft sole, which constantly corrects the center of gravity at the smallest loads and then misloads your joints.