If you throw it into the washing machine, take it out to dry. You may find that many dirty places are not washed, and your heart may not be very good. Maybe you should wash it again.
So it's better to wash it carefully from the beginning.
You can soak the bag first, put the laundry detergent on it, or dip soap on the basis of the laundry detergent, focusing on washing in dirty places. Generally, it won't be too dirty inside, just rinse it with water. Soak the bag for about half an hour, and then you can clean it carefully with a brush.
Of course it depends on the material of the bag. If you can't brush the bag, it is recommended to rub it by hand, rinse it and dry it.