Magnet near 2020 Macbook Pro
No, a permanent magnet of any reasonable size would not damage your computer.
You are not endangering your computer by having the case near the computer.
The SSD in your computer is not affected by magnets of that type at all.