To remove paint from clothes and carpets, first identify the type: water-based paint can usually be removed by rinsing with cold water, applying detergent, and gently rubbing before washing, while oil-based paint requires a solvent like paint thinner or turpentine, applied carefully and blotted before cleaning with detergent. For carpets, blot excess paint first, then use a mix of water and dish soap for water-based stains or a small amount of thinner for oil-based ones, always dabbing gently instead of rubbing. Acting quickly, avoiding hot water on fresh stains, and testing any cleaner on a hidden area will help prevent damage and improve results.
For more in detail : https://lifetoolkit.tech/how-to-get-paint-out-of-clothes-carpets/