It is NOT illegal - because the laws against insider trading specifically exempt Members of Congress.
Is pelosi husband a member of Congress. I am sure they have the paper work showing it’s her that did it. Or something to make it right. Wouldn’t matter though, they won’t go after them.