Nancy Pelosi’s story is her husband does the stock trading without her involvement (or even her knowledge prior to her regular reports to Congress about trading activity). If true (and assuming she’s not giving privileged info to her husband), that means no insider trading.
Having said that, I really think Congresspeople should be prohibited from trading in individual stocks entirely, and restricted to just investing in index funds, if for no other reason than the PR problem of congresspeople appearing to profit off of their position.