How to change terraform provider in existing terraform pipeline

Currently, I am using “Mongey/kafka” terraform provider and now I have to switch to “confluentinc/confluent” provider with my existing terraform pipeline. How can I do this ?