fyi, there is no flanking in RAW 5e. there's, i think, an optional rule that gives the DM some guidance on using it, if they want. so basically, if you WANT the spiritual weapon to offer flanking, then yes it does.
we play that spiritual weapon doesn't have any extra effects like that, so it...