It's very much a grey area, it says in the 'Interpretation of the Laws of the Game and Guidelines for Referees' in FIFA's Laws of the Game:
“Feinting to take a penalty kick to confuse opponents is permitted as part of football. However, if, in the opinion of the referee, the feinting is...