Hello @Abdellah and welcome to the ST community,
For Simulink questions/issue please contact Mathworks on theircommunities: https://www.mathworks.com/matlabcentral/content/communities.html
And I think it could be a version issue since they are supporting (as far as I know) an older version of CubeMx.
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.