Callback every frame in timeline preview mode

There there any way to get a similar function to the Update() function in play mode but in timeline preview mode?

Not really. You can use [ExecuteInEditMode] to get the Update method in edit mode (or EditorApplication.update), along with checking TimelineEditor.inspectedDirector to see if there is a timeline current selected.