Thanks!
Here’s regex for permalink normalizations for my case on XenForo:
https://example.com/threads/thread-name.1234/
/(threads)\/(.*?)([0-9].*)?$/threads/\3
https://example.com/forums/category.1234/
/(forums)\/(.*?)([0-9].*)?$/forums/\3
When there’s numbers in thread-name or category use this
/(threads)\/(.*?\.)([0-9].*)?$/threads/\3
/(forums)\/(.*?\.)([0-9].*)?$/forums/\3