Based on the bug in tex.stackexchange site described here:
https://tex.meta.stackexchange.com/q/7168/27635
I've made this query with SEDE (https://data.stackexchange.com/tex/query/676480/tex-sx-corruption-based-on-user-id):
declare @UserId int = ##UserId##
select
Id as [Post Link],
CreationDate
from posts
where (replace(replace(body,'\\',''), ' ','X') like '%\XXXX%')
and Posts.OwnerUserId = @UserId
order by CreationDate;
which finds the offending lines in posts of a specific user.
However, even after correcting them in the original posts, the query returns the same number of posts.
So, I think that my query searches the original body of the post, instead of the last edited version.
Does anybody know what to change in my query to achieve what I want?