Shebangs are very common for bash scripts, but they are most part of the time take for granted, and their underlying mechanisms ignored.
In this post and the video I reference, I describe how does that work and also implement some tests to understand it further.