If you want to limit a WooCommerce coupon to only be used on certain products, you can do this by editing the coupon, then go to the “Usage restriction” tab under “Coupon data”, and then enter the products you want to limit it to in the “Products” field.
This will then make it so this coupon can only be applied to those products.