Note that this level shifter is INVERTING. 
When PWM input is low level, PWM output is high level. 

You can adjust final PWM output voltage level value by changing R2 and R3 value. 
See TPS7A16A-Q1 datasheet (below) for resistor combination values:

https://www.digikey.com/short/929bj4tp

https://www.ti.com/lit/ds/symlink/tps7a16a-q1.pdf?ts=1701454687808&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTPS7A16A-Q1%253Fqgpn%253Dtps7a16a-q1