Are these parts compatible with "Ryzen 7 7840HS"?

The RAM you’ve listed is a desktop kit. That will not work in a laptop.

The SSD you’ve listed is a Gen 5 drive. The FW16 will not be able to fully utilize the bandwidth of a Gen 5 drive.

You can find a community list of RAM and SSDs here: