Bell's theorems indeed rule out simple theories where hidden variables obey local equations. However, no matter how you reason, it's always at some point where you need another assumption. In its simplest form, it is the assumption that two observers, Bob an Alice, have the "free will" to choose along which axis they will measure the spin of a particle (photon, electron, or something else). Well, one could object that in a deterministic theory they have no such free will; their decisions were made in the far past.
But that does not invalidate Bell, because now you can say: Bell's theorem would imply that entangled photons emitted by a physical source are correlated non locally in an unnatural way with the nerves in Bob's and Alice's brains long before they made their decisions. That's called "conspiracy". So now the assumption is: there can't be conspiracy. Can't there? Spacelike non-local correlations in physical states are common in the physical world.
In fact, in quantum field theory it's the propagators of all physical particles that describe correlations, and they do not vanish far outside the light cone. But the kind of conspiracy quantum systems seem to display (when described in terms of "hidden variables") looks disgusting to many researchers. So it is usually dismissed. Is "disgusting" a sound mathematical argument? You decide ...