As the OP is written here this is a legal play. It or several very similar versions have been used for many years in RI where I started doing NFHS rules and it was clearly told to us that this is a 100% legal play when it was brought up in our 1st RI post game report as a question. Also, no coaches ever asked about the legality of the play. If it's a foul, please cite the specific rule(s) being violated.