Doesn't this move sort of pin the bishop, well sort of since the bishop is able to protect the rook with Bh4
Yes, your move pins the bishop, but Qf2+ wins the rook.
Simply put, your move lost some advantage, but you are still winning by a margin.
It wasn't the best move, per se.
You missed fork on king and rook on Qf2+ (queen is guarded with rook) and king must move to h1 square and then you take rook