Cats chew on plants for different reasons - boredom, curiosity, lack of fiber, or wanting to clean their teeth - so it's normal behavior, but yeah, there's real danger.
The most toxic for cats are dieffenbachia, oleander, azalea, calla lilies, lilies (especially dangerous), anthurium, ivy, poinsettia. Even a small amount of sap or pollen from these plants can cause vomiting, diarrhea, weakness, or more serious problems. Almost safe are dracaena, bamboo, areca palm, spathiphyllum, spider plant (cats absolutely love spider plants and you can even keep them specifically for them).
The easiest thing is to move dangerous plants far away or block access to them. It also helps to put a separate pot with cat grass or fireweed - a lot of cats switch to the safe alternative. If your cat is eating soil, it might mean a mineral deficiency in their diet, so it's worth checking if they're getting enough micronutrients or if there could be a health issue.