Say it sideways, then mean it
Shy people rarely confess in a straight line. They hide the brave thing in a joke or an object, so it can be laughed off if it lands badly: June never says she likes Milo, she says she moved the good cookies to Fridays.
The romantic turn comes when the other person answers the hidden meaning instead of the joke.