Diving flashlight piece

Hello everyone !

I have a diving flashlight piece that has rusted and I want to print a new one to replace it.
It is the aluminum ring that contains a small magnet to activate the light.

I was thinking about printing the ring in plastic and glue the magnet in a small notch.
Do you think that it is possible ?