Weird wiring configuration, neutral is live
If you have two switches and only 3 wires feeding them then here is what they most likely did.

When creating a switch leg for lighting or other loads using non-metallic cable, the National Electrical Code requires that the white wire be connected to the hot feed to the switch and re-identified some other color (except gray). Usually it is re-identified with tape as a black wire because that is what electricians carry with them.

In your situation, the white wire would then be the hot feed to the pair of switches. After the switches, the black would go to one load while the red goes to another. If this is for a ceiling fan then the black would feed the fan and the red to the lights or vice versa.

This means there is NO neutral present at this switch location regardless that the wire there is white. Someone just never re-identified the white wire as is required by the Code.

To use a smart switch at this location you will need a smart switch(es) that does not need a neutral wire. It would use the ground wire to stay active while it waits for motion or a wifi signal. Apparently, the smart switch that you have needs a neutral since it has a white wire. Look for switches marked "NO neutral needed".

Good luck and stay safe!