I think if its the same as other bosch tumble dryers you have to take off the left side
to do that normally. Remove lid and right side, undo control panel. remove all screws holding left side. and remove ( don’t forget screw underneath )
not sure what you have to loosen to remove lock but above gets you 90{e5d1b7155a01ef1f3b9c9968eaba33524ee81600d00d4be2b4d93ac2e58cec2d} there
The small cover around the lock is clipped in so once the LHS panel is off, you can remove that which reveals a screw that holds the lock in. If I remember correctly , you may need to undo 1 or 2 screws on the front panel (the ones closest to the lock) to allow you to pull the panel slightly forward to give yourself a little wriggle room to remove the lock. Make sure you have a good luck at the lock before pulling it out as it sits in a very specific way.