You are welcome to follow a gluten-free diet if such is your preference or your obligation. But, if you’re trying to lose weight in the meantime, than you should avoid gluten-free pasta altogether and focus on other foods. Gluten-free pasta is, well, gluten-free. But it is also made with alternative flours like rice, corn, or potato flours, and these are very high glycemic and can lead to weight gain.
If you are not willing to give up gluten-free pasta, then I recommend cooking pasta al dente (follow the manufacturer’s package), rinse it under hot water once it is cooked and drained, and then add high-fiber ingredients to the dish that you’re making: leafy green vegetables, lentils and beans, seeds and nuts, vegetables, etc…
I hope this helps.