The wiki on here lists safe and unsafe veg etc - cucumber flowers aren’t on there. I don’t know either and can’t find anything on Google. They are probably ok but I wouldn’t risk it without more info. They are edible for humans though!
Safe and Unsafe Food and Plants - Hamster Central WIKI