found this online it might help you
https://www.fishlore.com/aquariumfishforum/threads/what-to-do-when-catfish-spines-get-caught-in-nets.433079
1. Let the fish sit in the water for a minute; doing this allows the fish to calm itself down a little as it will likely be freaking out which will worsen its situation, the fish may also get itself free (if it does look it over to ensure no injuries were sustained).
2. Once the fish has calmed itself lift the fish out of the water and find the spot in which the fin is tangled; this is important for step three, it is very important that you do not move onto step three, you can not move on until the fish is calm (which may take several minutes) and you have identified where the fish's fins are tangled.
3. Take the catfish out of the water and carefully grab and hold onto the fin that may be tangled and GENTLY pull to see if you may be able to get it out of the net; this step may be dangerous and it is helpful to have someone else hold the net while you do this, make sure to always know where his spines are and if he starts to thrash move your hand away and let him calm down.
4. If you are able to pull the fin out gently gently pull it out, if not then it is time to cut the net, like step three gently grab the fin that is tangled and cut as close to the fin as possible watching that you don't cut the fin of the fish
After step 4 the best idea is to leave it be for a couple days and see if it comes of on its own which it might. If not you may proceed further however the next step is drastic and can be dangerous so let it sit for several days before doing this (unless of course the fish can not swim properly or is in other ways having a hard time with the net, in which case do this ASAP)
5. So the fish either is having a hard time swimming or you have waited several days and its not coming off, here is the next step. For this you will need supplies: Towels, tweezers, two buckets/tupperwear, clove oil, and patience. these following steps you will be doing a kind of surgery to remove the net so I advise you watch this video before continuing to understand better the sedating process:
6. You have now watched the video, follow the steps in the video to make the fish sedated and then gently place it on the towel.
7. Using the tweezers GENTLY remove the net from the fins
8. place back in the second bucket, remember that it may take several minutes for the fish to wake up and it is helpful to place an airstone near or under their gills