import re
sal= '41 000€ à 63 000€ / an' #this is a sample string for which i have errors
regex = '(?<!\S)([0-9]+(?: [0-9]{1,3})?)€(?!\S)'
print(re.findall(regex,sal)) # ['41 000', '63 000']
aW1wb3J0IHJlCnNhbD0gJzQxIDAwMOKCrCDDoCA2MyAwMDDigqwgLyBhbicgI3RoaXMgaXMgYSBzYW1wbGUgc3RyaW5nIGZvciB3aGljaCBpIGhhdmUgZXJyb3JzCnJlZ2V4ID0gJyg/PCFcUykoWzAtOV0rKD86IFswLTldezEsM30pPynigqwoPyFcUyknCnByaW50KHJlLmZpbmRhbGwocmVnZXgsc2FsKSkgICMgWyc0MSAwMDAnLCAnNjMgMDAwJ10=