A compound of Formula or a pharmaceutically acceptable salt thereof wherein: Ar' is a 5- to 10-membered aromatic or heteroaromatic single or fused ring comprising up to 3 heteroatoms selected from N, O, S; R 1 and R 2 are independently selected from the group consisting of hydrogen, halogen, linear or branched C 1-6 alkyl, C 1-6 alkoxy, OH, CF 3; R 1 and R 2 can be attached in any position of the Ar' group; X is N or CH; Y is an alkylene or alkenylene group selected from the group consisting of where n is 0 or an integer from 1 to 3 and wherein Y is optionally substituted by up to two same or different substituents B attached to any position of the Y group; B is selected in the group consisting of F, OH, CH 2 OH, CH 2 F; R 3 is a 5- to 6-membered aromatic or heteroaromatic ring, a benzyl or benzoyl group, optionally substituted by up to two same or different substituents R 5 attached to any position of the R 3 ring, wherein R 5 is selected from OH, NH 2, CN, halogen, linear or branched C 1-6 alkyl, C 1-6 alkoxy, hydroxyC 1-6 alkyl, SO 2 NH 2, CONH 2, CONR 7 R 8, where R 7 and R 8 are, independently, hydrogen or C 1-6 alkyl; or R 3 is a 5- to 7-membered aliphatic or heterocyclic ring comprising up to 3 heteroatoms selected from N, O, S optionally substituted by up to two same or different substituents R 6 attached to any position of the R 3 ring, wherein R 6 is selected from F, gem-difluoro, Me, gem-dimethyl, =O, COMe, OH, CONH 2; and wherein the group R 3 can be attached to any position of the phenyl ring; R 4 is hydrogen, halogen, linear or branched C 1-6 alkyl, C 1-6 alkoxy, hydroxyC 1-6 alkyl, CF 3; the group R 4 can be attached to any position of the phenyl ring; or R 3 and R 4 together with the phenyl ring to which they are connected may form a 9H-carbazole ring. Ar' is a 5- to 10-membered aromatic or heteroaromatic single or fused ring comprising up to 3 heteroatoms selected from N, O, S; R 1 and R 2 are independently selected from the group consisting of hydrogen, halogen, linear or branched C 1-6 alkyl, C 1-6 alkoxy, OH, CF 3; R 1 and R 2 can be attached in any position of the Ar' group; X is N or CH; Y is an alkylene or alkenylene group selected from the group consisting of where n is 0 or an integer from 1 to 3 and wherein Y is optionally substituted by up to two same or different substituents B attached to any position of the Y group; B is selected in the group consisting of F, OH, CH 2 OH, CH 2 F; R 3 is a 5- to 6-membered aromatic or heteroaromatic ring, a benzyl or benzoyl group, optionally substituted by up to two same or different substituents R 5 attached to any position of the R 3 ring, wherein R 5 is selected from OH, NH 2, CN, halogen, linear or branched C 1-6 alkyl, C 1-6 alkoxy, hydroxyC 1-6 alkyl, SO 2 NH 2, CONH 2, CONR 7 R 8, where R 7 and R 8 are, independently, hydrogen or C 1-6 alkyl; or R 3 is a 5- to 7-membered aliphatic or heterocyclic ring comprising up to 3 heteroatoms selected from N, O, S optionally substituted by up to two same or different substituents R 6 attached to any position of the R 3 ring, wherein R 6 is selected from F, gem-difluoro, Me, gem-dimethyl, =O, COMe, OH, CONH 2; and wherein the group R 3 can be attached to any position of the phenyl ring; R 4 is hydrogen, halogen, linear or branched C 1-6 alkyl, C 1-6 alkoxy, hydroxyC 1-6 alkyl, CF 3; the group R 4 can be attached to any position of the phenyl ring; or R 3 and R 4 together with the phenyl ring to which they are connected may form a 9H-carbazole ring.