If you don't have a headphone jack and want to use wired headphones while charging your phone, you can get a USB-C to 3.5mm adapter from UGREEN. The USB-C to 3.5mm adapter is easy to use and connect.
Features of USB-C Headphone and Charging Adapter by UGREEN: Ability to charge your smartphone with PD technology while using wired headphones 30W USB-C charging port 3.5mm headphone jack