For example, I know that Dark type Pokemon are immune to prankster, but if they Tera or get their type changed by a move (such as Soak) will it still be immune?
No, A Terastallized or type-changed Dark-Type that gets it type changed to a different type will not be immune to Prankster.
Source: Experience
Hope I helped!