Use a Mosfet/PNP transistor to boost voltage for mcu pin
The easiest way would be something like this:







simulate this circuit &ndash; Schematic created using CircuitLab

When selecting the MOSFET, make sure it is a 'logic level' MOSFET that can turn on fully with 3.3V gate to source, and handle the current the laser diode uses.

Note that I don't show any current limiting here.  If the laser diode doesn't include that you will need to use a resistor in series.