How do you include a callback value into a formatted string?

Simple one here… I am using dcc.Store and setting a session_id string. When it is returned I can use:

html.P(’’, id=‘session_id’)

to print it raw but how do I include it within a formatted string like f’session id: {session_id}’. Or set it to a variable above the call to do the same.

figured this one out myself, that the formatting should be done on the sending side and not the receiving side. That will keep the page rendering as efficient as possible.