That foam is called Kaizen Foam. I think FastCap was the first to call it Kaizen foam (I first saw it called that on their web site years back, and then other sites started popping up with it). FastCap is a supplier to the woodworking industry, and they are all in on the Japanese concept of lean manufacturing. "Kaizen" translated from Japanese to English is something like "continuously improving." One of the concepts of lean manufacturing is keeping a clean, orderly workspace with tools arranged for efficiency of movement. Tools having a permanent location and being immediately replaced in it after use is how Kaizen Foam came to be.
Here's FastCaps page on their Kaizen Foam offerings:
https://www.fastcap.com/product/kaizen-foam?cat=325
There are likely cheaper options, but they have other related items on their web site, and I they have many how to videos, too.
Opinionated note - I have a LOT of tools, and even with 8 or 9 medium to large tool cabinets, I don't have enough drawer space. I like the foam because it helps keep the tools in place from opening and closing drawers. However, I don't use it because it wastes too much space, and I'm always buying new tools, so my drawer contents change frequently. The foam really only works if you have ample drawer space, and don't add tools frequently. It's often used on automotive production lines, which is where it really shines.