there is also definitely Ab (G#?) going on there too  so it's not quite B7 either.
Ab note is in Bdim7 also. so in your line of thinking, everything seems 'legal', although that's not always what counts in songs where time flows along in a forwardly direction