Complex sentence: It features guest vocals from Selena Gomez who co-wrote the track with Jacob Kasher and Puth; the latter also served as a producer.
Split into simpler sentences: It features guest vocals from Selena Gomez. She co-wrote the track with Jacob Kasher and Puth; the latter also served as a producer.